Skip to main content

pack_bool_word_avx2

Function pack_bool_word_avx2 

Source
pub unsafe fn pack_bool_word_avx2(bools: &[bool; 64]) -> u64
Expand description

AVX2 byte→bit pack kernel: two 32-byte vpcmpeqb-against-zero + vpmovmskb rounds.

§Safety

The caller must ensure the CPU supports AVX2.