Module traits
Numeric traits used for internal implementations.
Traits
-
CastInto
Lossy
ascasting between two types. - Float A helper trait to avoid duplicating basically all the conversion code for IEEE floats.
-
FloatExt
Items that ideally would be on
Float, but don't apply to all float types because they rely on the mantissa fitting into au64(which isn't true forf128). - Int Collection of traits that allow us to be generic over integer size.
Functions
-
pow2_to_pow10
Solve for
bin10^b = 2^a