Developer Guide and Reference

Contents

Intrinsics for Set 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_mask_set1_epi8
__m128i _mm_mask_set1_epi8(__m128i src, __mmask16 k, char a)
CPUID Flags: AVX512BW, AVX512VL
Instruction(s): vpbroadcastb
Broadcast 8-bit integer
a
to all elements of the return value using writemask
k
(elements are copied from
src
when the corresponding mask bit is not set).
_mm_maskz_set1_epi8
__m128i _mm_maskz_set1_epi8(__mmask16 k, char a)
CPUID Flags: AVX512BW, AVX512VL
Instruction(s): vpbroadcastb
Broadcast 8-bit integer
a
to all elements of the return value using zeromask
k
(elements are zeroed out when the corresponding mask bit is not set). <