On closed Z groups, we can implement division by a constant divisor by computing a constant multiplicative inverse that we can multiply a quotient with. This optimization is necessary to achieve good fixed-point division performance, and is common in mainline compilers already.
On closed Z groups, we can implement division by a constant divisor by computing a constant multiplicative inverse that we can multiply a quotient with. This optimization is necessary to achieve good fixed-point division performance, and is common in mainline compilers already.
base2.fixed.reciprocaloperation for this).base2.fixed.div(maybe alsobase2.div) to multiplication for constant rhs terms.