Module poplar_util::math
source · Traits§
Functions§
- Divide
x
bydivide_by
, taking the ceiling if it does not divide evenly. - Fast integer
log2
that floors to the lower power-of-2 ifx
is not a power-of-2.x
must not be 0.
x
by divide_by
, taking the ceiling if it does not divide evenly.log2
that floors to the lower power-of-2 if x
is not a power-of-2. x
must not be 0.