Function arrow_buffer::bit_util::round_upto_power_of_2
source ยท pub fn round_upto_power_of_2(num: usize, factor: usize) -> usize
Expand description
Returns the nearest multiple of factor
that is >=
than num
. Here factor
must
be a power of 2.