Developer Guide and Reference

Contents

Intrinsics for Bit Manipulation Operations

The prototypes for Intel® Advanced Vector Extensions 512 (Intel® AVX-512) intrinsics are located in the
zmmintrin.h
header file.
To use these intrinsics, include the
immintrin.h
file as follows:
#include <immintrin.h>
variable
definition
src
source element to use based on writemask result
k
writemask used as a selector
a
first source vector element
_mm_lzcnt_epi32
__m128i _mm_lzcnt_epi32(__m128i a)
CPUID Flags: AVX512CD, AVX512VL
Instruction(s): vplzcntd
Counts the number of leading zero bits in each packed 32-bit integer in
a
, and return the results.
_mm_mask_lzcnt_epi32
__m128i _mm_mask_lzcnt_epi32(__m128i src, __mmask8 k, __m128i a)
CPUID Flags: AVX512CD, AVX512VL
Instruction(s): v