pub const fn log2_ceil(value: usize) -> usizeExpand description
Compute ceil(log_2(value))
Find the smallest result such that, for the provided value,
2^result >= value.
ยงExample
assert_eq!(log2_ceil(8), 3); // 2^3 = 8
assert_eq!(log2_ceil(32), 5); // 2^5 = 32