Function o1_utils::math::ceil_log2

source ·
pub fn ceil_log2(d: usize) -> usize
Expand description

Returns ceil(log2(d)) but panics if d = 0.