AVX-512-Set-XMM#
_mm_mask_set1_epi8#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__m128i src, __mmask16 k, char a
- Param ETypes:
UI8 src, MASK k, UI8 a
__m128i _mm_mask_set1_epi8(__m128i src, __mmask16 k,
char a)
Intel Description
Broadcast 8-bit integer “a” to all elements of “dst” using writemask “k” (elements are copied from “src” when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 15
i := j*8
IF k[j]
dst[i+7:i] := a[7:0]
ELSE
dst[i+7:i] := src[i+7:i]
FI
ENDFOR
dst[MAX:128] := 0
_mm_maskz_set1_epi8#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__mmask16 k, char a
- Param ETypes:
MASK k, UI8 a
__m128i _mm_maskz_set1_epi8(__mmask16 k, char a);
Intel Description
Broadcast 8-bit integer “a” to all elements of “dst” using zeromask “k” (elements are zeroed out when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 15
i := j*8
IF k[j]
dst[i+7:i] := a[7:0]
ELSE
dst[i+7:i] := 0
FI
ENDFOR
dst[MAX:128] := 0
_mm_mask_set1_epi16#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__m128i src, __mmask8 k, short a
- Param ETypes:
UI16 src, MASK k, UI16 a
__m128i _mm_mask_set1_epi16(__m128i src, __mmask8 k,
short a)
Intel Description
Broadcast the low packed 16-bit integer from “a” to all elements of “dst” using writemask “k” (elements are copied from “src” when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 7
i := j*16
IF k[j]
dst[i+15:i] := a[15:0]
ELSE
dst[i+15:i] := src[i+15:i]
FI
ENDFOR
dst[MAX:128] := 0
_mm_maskz_set1_epi16#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__mmask8 k, short a
- Param ETypes:
MASK k, UI16 a
__m128i _mm_maskz_set1_epi16(__mmask8 k, short a);
Intel Description
Broadcast the low packed 16-bit integer from “a” to all elements of “dst” using zeromask “k” (elements are zeroed out when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 7
i := j*16
IF k[j]
dst[i+15:i] := a[15:0]
ELSE
dst[i+15:i] := 0
FI
ENDFOR
dst[MAX:128] := 0
_mm_mask_set1_epi32#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__m128i src, __mmask8 k, int a
- Param ETypes:
UI32 src, MASK k, UI32 a
__m128i _mm_mask_set1_epi32(__m128i src, __mmask8 k, int a);
Intel Description
Broadcast 32-bit integer “a” to all elements of “dst” using writemask “k” (elements are copied from “src” when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 3
i := j*32
IF k[j]
dst[i+31:i] := a[31:0]
ELSE
dst[i+31:i] := src[i+31:i]
FI
ENDFOR
dst[MAX:128] := 0
_mm_maskz_set1_epi32#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__mmask8 k, int a
- Param ETypes:
MASK k, UI32 a
__m128i _mm_maskz_set1_epi32(__mmask8 k, int a);
Intel Description
Broadcast 32-bit integer “a” to all elements of “dst” using zeromask “k” (elements are zeroed out when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 3
i := j*32
IF k[j]
dst[i+31:i] := a[31:0]
ELSE
dst[i+31:i] := 0
FI
ENDFOR
dst[MAX:128] := 0
_mm_mask_set1_epi64#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__m128i src, __mmask8 k, __int64 a
- Param ETypes:
UI64 src, MASK k, UI64 a
__m128i _mm_mask_set1_epi64(__m128i src, __mmask8 k,
__int64 a)
Intel Description
Broadcast 64-bit integer “a” to all elements of “dst” using writemask “k” (elements are copied from “src” when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 1
i := j*64
IF k[j]
dst[i+63:i] := a[63:0]
ELSE
dst[i+63:i] := src[i+63:i]
FI
ENDFOR
dst[MAX:128] := 0
_mm_maskz_set1_epi64#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128i
- Param Types:
__mmask8 k, __int64 a
- Param ETypes:
MASK k, UI64 a
__m128i _mm_maskz_set1_epi64(__mmask8 k, __int64 a);
Intel Description
Broadcast 64-bit integer “a” to all elements of “dst” using zeromask “k” (elements are zeroed out when the corresponding mask bit is not set).
Intel Implementation Psudeo-Code
FOR j := 0 to 1
i := j*64
IF k[j]
dst[i+63:i] := a[63:0]
ELSE
dst[i+63:i] := 0
FI
ENDFOR
dst[MAX:128] := 0
_mm_setzero_ph#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128h
__m128h _mm_setzero_ph(void );
Intel Description
Return vector of type __m128h with all elements set to zero.
Intel Implementation Psudeo-Code
dst[MAX:0] := 0
_mm_set_ph#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128h
- Param Types:
_Float16 e7, _Float16 e6, _Float16 e5, _Float16 e4, _Float16 e3, _Float16 e2, _Float16 e1, _Float16 e0
- Param ETypes:
FP16 e7, FP16 e6, FP16 e5, FP16 e4, FP16 e3, FP16 e2, FP16 e1, FP16 e0
__m128h _mm_set_ph(_Float16 e7, _Float16 e6, _Float16 e5,
_Float16 e4, _Float16 e3, _Float16 e2,
_Float16 e1, _Float16 e0)
Intel Description
Set packed half-precision (16-bit) floating-point elements in “dst” with the supplied values.
Intel Implementation Psudeo-Code
dst.fp16[0] := e0
dst.fp16[1] := e1
dst.fp16[2] := e2
dst.fp16[3] := e3
dst.fp16[4] := e4
dst.fp16[5] := e5
dst.fp16[6] := e6
dst.fp16[7] := e7
_mm_setr_ph#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128h
- Param Types:
_Float16 e7, _Float16 e6, _Float16 e5, _Float16 e4, _Float16 e3, _Float16 e2, _Float16 e1, _Float16 e0
- Param ETypes:
FP16 e7, FP16 e6, FP16 e5, FP16 e4, FP16 e3, FP16 e2, FP16 e1, FP16 e0
__m128h _mm_setr_ph(_Float16 e7, _Float16 e6, _Float16 e5,
_Float16 e4, _Float16 e3, _Float16 e2,
_Float16 e1, _Float16 e0)
Intel Description
Set packed half-precision (16-bit) floating-point elements in “dst” with the supplied values in reverse order.
Intel Implementation Psudeo-Code
dst.fp16[0] := e7
dst.fp16[1] := e6
dst.fp16[2] := e5
dst.fp16[3] := e4
dst.fp16[4] := e3
dst.fp16[5] := e2
dst.fp16[6] := e1
dst.fp16[7] := e0
_mm_set1_ph#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128h
- Param Types:
_Float16 a
- Param ETypes:
FP16 a
__m128h _mm_set1_ph(_Float16 a);
Intel Description
Broadcast half-precision (16-bit) floating-point value “a” to all elements of “dst”.
Intel Implementation Psudeo-Code
FOR i := 0 to 7
dst.fp16[i] := a[15:0]
ENDFOR
dst[MAX:128] := 0
_mm_set1_pch#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128h
- Param Types:
_Float16 _Complex a
- Param ETypes:
FP16 a
__m128h _mm_set1_pch(_Float16 _Complex a);
Intel Description
Broadcast half-precision (16-bit) complex floating-point value “a” to all elements of “dst”.
Intel Implementation Psudeo-Code
FOR i := 0 to 3
dst.fp16[2*i+0] := a[15:0]
dst.fp16[2*i+1] := a[31:16]
ENDFOR
dst[MAX:128] := 0
_mm_set_sh#
- Tech:
AVX-512
- Category:
Set
- Header:
immintrin.h
- Searchable:
AVX-512-Set-XMM
- Register:
XMM 128 bit
- Return Type:
__m128h
- Param Types:
_Float16 a
- Param ETypes:
FP16 a
__m128h _mm_set_sh(_Float16 a);
Intel Description
Copy half-precision (16-bit) floating-point element “a” to the lower element of “dst”, and zero the upper 7 elements.
Intel Implementation Psudeo-Code
dst.fp16[0] := a[15:0]
dst[127:16] := 0