Mojo module
uutils
Utilities for doing unsigned division and modulo operations on Int.
These helpers allow performing unsigned division and modulo operations on Int arguments. This can provide better performance, as these operations can be slower when performed using signed integers on some accelerators, as correctly handling negative values requires additional instructions.
Functionsβ
- β
udivmod: Perform unsigned divmod on Int arguments. - β
ufloordiv: Perform unsigned floor division (//) on Int arguments. - β
umod: Perform unsigned modulo (%) on Int arguments.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!