1
/// Returns the number of bits needed to represent the given value.
2
17559815
pub fn bits_for_value(value: usize) -> u8 {
3
17559815
    value.ilog2() as u8 + 1
4
17559815
}