Mojo function
align_down_residual
align_down_residual(value: Int, alignment: Int) -> Int
Returns the remainder after aligning down value to alignment.
Args:
- value (
Int
): The value to align. - alignment (
Int
): Value to align to.
Returns:
The remainder after aligning down value to the closest multiple of alignment. In other words, value - align_down(value, alignment).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!