arrow_buffer::util::bit_util

Function 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.