pub fn bits_needed(max: u64) -> u32
Bits required to represent max with frame-of-reference packing.
max