Skip to main content

pack_avx2

Function pack_avx2 

Source
pub unsafe fn pack_avx2(bits: &[u8]) -> Vec<u64>
Expand description

Pack u8 bits into u64 words using AVX2 movemask.

Processes 64 bytes into one u64 word by building two 32-bit masks.

ยงSafety

Caller must ensure the current CPU supports avx2.