Visible to Intel only — GUID: GUID-8B243904-E055-472B-A0C1-95356CDFD930
Visible to Intel only — GUID: GUID-8B243904-E055-472B-A0C1-95356CDFD930
Intrinsics for Division Operations (512-bit)
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_div_pd, _mm512_mask_div_pd, _mm512_maskz_div_pd _mm512_div_round_pd, _mm512_mask_div_round_pd, _mm512_maskz_div_round_pd |
Calculates quotient of rounded division operation of packed float64 elements. |
VDIVPD |
_mm512_div_ps, _mm512_mask_div_ps, _mm512_maskz_div_ps _mm512_div_round_ps, _mm512_mask_div_round_ps, _mm512_maskz_div_round_ps |
Calculates quotient of rounded division operation of packed float32 elements. |
VDIVPS |
_mm_mask_div_sd, _mm_maskz_div_sd _mm_div_round_sd, _mm_mask_div_round_sd, _mm_maskz_div_round_sd |
Calculates quotient of rounded division operation of scalar float64 elements. |
VDIVSD |
_mm_mask_div_ss, _mm_maskz_div_ss _mm_div_round_ss, _mm_mask_div_round_ss, _mm_maskz_div_round_ss |
Calculates quotient of rounded division operation of scalar float32 elements. |
VDIVSS |
variable | definition |
---|---|
k | writemask used as a selector |
a | first source vector element |
b | second source vector element |
src | source element to use based on writemask result |
round | Rounding control values; these can be one of the following (along with the sae suppress all exceptions flag):
|
_mm512_div_pd
extern __m512d __cdecl _mm512_div_pd(__m512d a, __m512d b);
Divides packed float64 elements in a by packed elements in b, and stores the result.
_mm512_mask_div_pd
extern __m512d __cdecl _mm512_mask_div_pd(__m512d src, __mmask8 k, __m512d a, __m512d b);
Divides packed float64 elements in a by packed elements in b, and stores the result using writemask k (elements are copied from src when the corresponding mask bit is not set).
_mm512_maskz_div_pd
extern __m512d __cdecl _mm512_maskz_div_pd(__mmask8 k, __m512d a, __m512d b);
Divides packed float64 elements in a by packed elements in b, and stores the result using zeromask k (elements are zeroed out when the corresponding mask bit is not set).
_mm512_div_round_pd
extern __m512d __cdecl _mm512_div_round_pd(__m512d a, __m512d b, int round);
Divides packed float64 elements in a by packed elements in b, and stores the result.
_mm512_mask_div_round_pd
extern __m512d __cdecl _mm512_mask_div_round_pd(__m512d src, __mmask8 k, __m512d a, __m512d b, int round);
Divides packed float64 elements in a by packed elements in b, and stores the result using writemask k (elements are copied from src when the corresponding mask bit is not set).
_mm512_maskz_div_round_pd
extern __m512d __cdecl _mm512_maskz_div_round_pd(__mmask8 k, __m512d a, __m512d b, int round);
Divides packed float64 elements in a by packed elements in b, and stores the result using zeromask k (elements are zeroed out when the corresponding mask bit is not set).
_mm512_div_ps
extern __m512 __cdecl _mm512_div_ps(__m512 a, __m512 b);
Divides packed float32 elements in a by packed elements in b, and stores the result.
_mm512_mask_div_ps
extern __m512 __cdecl _mm512_mask_div_ps(__m512 src, __mmask16 k, __m512 a, __m512 b);
Divides packed float32 elements in a by packed elements in b, and stores the result using writemask k (elements are copied from src when the corresponding mask bit is not set).
_mm512_maskz_div_ps
extern __m512 __cdecl _mm512_maskz_div__ps(__mmask16 k, __m512 a, __m512 b);
Divides packed float32 elements in a by packed elements in b, and stores the result using zeromask k (elements are zeroed out when the corresponding mask bit is not set).
_mm512_div_round_ps
extern __m512 __cdecl _mm512_div_round_ps(__m512 a, __m512 b, int round);
Divides packed float32 elements in a by packed elements in b, and stores the result.
_mm512_mask_div_round_ps
extern __m512 __cdecl _mm512_mask_div_round_ps(__m512 src, __mmask16 k, __m512 a, __m512 b, int round);
Divides packed float32 elements in a by packed elements in b, and stores the result using writemask k (elements are copied from src when the corresponding mask bit is not set).
_mm512_maskz_div_round_ps
extern __m512 __cdecl _mm512_maskz_div_round_ps(__mmask16 k, __m512 a, __m512 b, int round);
Divides packed float32 elements in a by packed elements in b, and stores the result using zeromask k (elements are zeroed out when the corresponding mask bit is not set).
_mm_mask_div_sd
extern __m128d __cdecl _mm_mask_div_sd(__m128d src, __mmask8 k, __m128d a, __m128d b);
Divides lower float64 element in a by lower float64 element in b, stores the result in lower destination element using writemask k (the element is copied from src when mask bit 0 is not set), and copies upper element from a to upper destination element.
_mm_maskz_div_sd
extern __m128d __cdecl _mm_maskz_div_sd(__mmask8 k, __m128d a, __m128d b);
Divides lower float64 element in a by lower float64 element in b, stores the result in lower destination element using zeromask k (the element is zeroed out when mask bit 0 is not set), and copies upper element from a to upper destination element.
_mm_div_round_sd
extern __m128d __cdecl _mm_div_round_sd(__m128d a, __m128d b, int round);
Divides lower float64 element in a by lower float64 element in b, stores the result in lower destination element, and copies upper element from a to upper destination element.
_mm_mask_div_round_sd
extern __m128d __cdecl _mm_mask_div_round_sd(__m128d src, __mmask8 k, __m128d a, __m128d b, int round);
Divides lower float64 element in a by lower float64 element in b, stores the result in lower destination element using writemask k (the element is copied from src when mask bit 0 is not set), and copies upper element from a to upper destination element.
_mm_maskz_div_round_sd
extern __m128d __cdecl _mm_maskz_div_round_sd(__mmask8 k, __m128d a, __m128d b, int round);
Divides lower float64 element in a by lower float64 element in b, stores the result in lower destination element using zeromask k (the element is zeroed out when mask bit 0 is not set), and copies upper element from a to upper destination element.
_mm_div_round_ss
extern __m128 __cdecl _mm_div_round_ss(__m128 a, __m128 b, int round);
Divides lower float32 element in a by lower float32 element in b, stores the result in lower destination element, and copies upper three packed elements from a to upper destination elements.
_mm_mask_div_round_ss
extern __m128 __cdecl _mm_mask_div_round_ss(__m128 src, __mmask8 k, __m128 a, __m128 b, int round);
Divides lower float32 element in a by lower float32 element in b, stores the result in lower destination element using writemask k (the element is copied from src when mask bit 0 is not set), and copies upper three packed elements from a to upper destination elements.
_mm_maskz_div_round_ss
extern __m128 __cdecl _mm_maskz_div_round_ss(__mmask8 k, __m128 a, __m128 b, int round);
Divides lower float32 element in a by lower float32 element in b, stores the result in lower destination element using zeromask k (the element is zeroed out when mask bit 0 is not set), and copies upper three packed elements from a to upper destination elements.
_mm_mask_div_ss
extern __m128 __cdecl _mm_mask_div_ss(__m128 src, __mmask8 k, __m128 a, __m128 b);
Divides lower float32 element in a by lower float32 element in b, stores the result in lower destination element using writemask k (the element is copied from src when mask bit 0 is not set), and copies upper three packed elements from a to upper destination elements.
_mm_maskz_div_ss
extern __m128 __cdecl _mm_maskz_div_ss(__mmask8 k, __m128 a, __m128 b);
Divides lower float32 element in a by lower float32 element in b, stores the result in lower destination element using zeromask k (the element is zeroed out when mask bit 0 is not set), and copies upper three packed elements from a to upper destination elements.