Macros§
Structs§
Enums§
Functions§
- checked_
add - checked_
add_ opt - checked_
div - checked_
div_ opt - checked_
mul - checked_
mul_ opt - checked_
pow - checked_
rooti - Rooti iterative method based on the 9lives implementation. Using this operation is the equivalent of pow(x, 1/n).
- checked_
sub - checked_
sub_ opt - const_
wrapping_ div - gcd_
mul_ div - gcd_
mul_ div_ round_ up - modd
- mul_div
- Muldiv that’s used in practice by Uniswap and other on-chain dapps. Middling in gas costs.
- mul_
div_ round_ up - mul_mod
- saturating_
add - saturating_
div - saturating_
mul - saturating_
sub - widening_
mul - widening_
mul_ div - Widening then truncate mul div that’s cheaper in codesize that’s safe for cold operations. The most expensive in gas costs.
- widening_
mul_ div_ round_ up - wrapping_
add - wrapping_
div - wrapping_
mul - wrapping_
mul_ b - wrapping_
pow - wrapping_
sub