Skip to main content

unpack

Function unpack 

Source
pub fn unpack(packed: &[u8], width: u32, out: &mut [u64])
Expand description

Unpacks one chunk. out must be exactly CHUNK long; packed holds whole words and may cover fewer than 1024 values, in which case the remainder of out is zeroed.

Dispatches to a const-width loop so every shift is a compile-time constant; the generic rolling-window fallback is an order of magnitude slower on older cores and exists only in tests as the oracle.