For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
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[Int, Int]: A Tuple of (quotient, remainder) from unsigned division.