Skip to main content

ceil_log2

Function ceil_log2 

Source
pub const fn ceil_log2(n: usize) -> u8
Expand description

Returns vanilla Mth.ceillog2: the number of bits needed to represent every id in 0..n.