Skip to main content

pack_bool_word_sse2

Function pack_bool_word_sse2 

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

SSE2 byte→bit pack kernel: four 16-byte pcmpeqb-against-zero + pmovmskb rounds.

§Safety

The caller must ensure the CPU supports SSE2 (always true on x86-64).