Module mycelium_util::math
source · Expand description
Math utilities.
Macros§
- Variadic version of
core::cmp::max
. - Variadic version of
core::cmp::min
.
Traits§
- Extension trait adding logarithm methods to integers.
Functions§
- Returns the
base
logarithm ofn
. - Returns
log2(n)
. - Returns
ceiling(log2(n))
.