Mojo function
ualign_up
ualign_up(value: Int, alignment: Int) -> Int
Returns the closest multiple of alignment that is greater than or equal to value.
Args:
Returns:
Int: Closest multiple of the alignment that is greater than or equal to the
input value. In other words, ceiling(value / alignment) * alignment.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!