Main Content
Modulo by Constant
Libraries:
Fixed-Point Designer
Description
The Modulo by Constant block performs the modulo operation (remainder after division) with a constant denominator.
The Modulo by Constant block uses an algorithm that is functionally similar to a Barrett Reduction. The division operation is computed via a multiplication by inverse, which generally results in better performance on embedded systems.