Mojo function
udivmod
udivmod(a: Int, b: Int) -> Tuple[Int, Int]
Perform unsigned divmod on Int arguments.
Computes the quotient and remainder in a single unsigned division, which is faster than signed divmod on NVIDIA GPUs.
For correctness, both arguments should be non-negative integers.
Args:
Returns:
Tuple: A Tuple of (quotient, remainder) from unsigned division.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!