Module full_math

Source
Expand description

A custom implementation of https://github.com/sdroege/rust-muldiv to support phantom overflow resistant multiply-divide operations. This library uses U128 in place of u128 for u64 operations, and supports U128 operations.

Structs§

U128
Little-endian large integer type
U256
Little-endian large integer type
U512
Little-endian large integer type

Traits§

Downcast256
Downcast512
MulDiv
Trait for calculating val * num / denom with different rounding modes and overflow protection.
Upcast256
Upcast512