Mojo function
umod
umod(a: Int, b: Int) -> Int
Perform unsigned modulo (%) on Int arguments.
This function treats both arguments as unsigned values and performs unsigned modulo, which is faster than signed modulo on NVIDIA GPUs.
For correctness, both arguments should be non-negative integers.
Args:
Returns:
Int: The remainder of unsigned division.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!