Visible to Intel only — GUID: GUID-C7302DF7-3EA3-4EE5-8CA2-599E3AD6AAD4
Visible to Intel only — GUID: GUID-C7302DF7-3EA3-4EE5-8CA2-599E3AD6AAD4
Intrinsics for Absolute Value 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>
Intrinsic Name |
Operation |
Corresponding |
---|---|---|
_mm512_abs_epi32, _mm512_mask_abs_epi32, _mm512_maskz_abs_epi32 |
Computes absolute value of int32 vector elements. |
VPABSD |
_mm512_abs_epi64, _mm512_mask_abs_epi64, _mm512_maskz_abs_epi64 |
Computes absolute value of int64 vector elements. |
VPABSQ |
variable | definition |
---|---|
k | writemask used as a selector |
a | first source vector element |
src | source element to use based on writemask result |
_mm512_abs_epi32
extern __m512i __cdecl _mm512_abs_epi32(__m512i a);
Computes absolute value of packed int32 elements in a, and stores unsigned results in destination.
_mm512_mask_abs_epi32
extern __m512i __cdecl _mm512_mask_abs_epi32(__m512i src, __mmask16 k, __m512i a);
Computes absolute value of packed int32 elements in a, and stores unsigned results in destination using writemask k (elements are copied from src when the corresponding mask bit is not set).
_mm512_maskz_abs_epi32
extern __m512i __cdecl _mm512_maskz_abs_epi32(__mmask16 k, __m512i a);
Computes absolute value of packed int32 elements in a, and stores unsigned results in destination using zeromask k (elements are zeroed out when the corresponding mask bit is not set).
_mm512_abs_epi64
extern __m512i __cdecl _mm512_abs_epi64(__m512i a);
Computes absolute value of packed int64 elements in a, and stores unsigned results in destination.
_mm512_mask_abs_epi64
extern __m512i __cdecl _mm512_mask_abs_epi64(__m512i src, __mmask8 k, __m512i a);
Computes absolute value of packed int64 elements in a, and stores unsigned results in destination using writemask k (elements are copied from src when the corresponding mask bit is not set).
_mm512_maskz_abs_epi64
extern __m512i __cdecl _mm512_maskz_abs_epi64(__mmask8 k, __m512i a);
Computes absolute value of packed int64 elements in a, and stores unsigned results in destination using zeromask k (elements are zeroed out when the corresponding mask bit is not set).