@@ -1574,14 +1574,6 @@ _mm256_blendv_ps(__m256 __a, __m256 __b, __m256 __c)
15741574 (__v4df)(__m256d)(b), (int)(mask)))
15751575
15761576/* Compare */
1577- #define _CMP_EQ_OQ 0x00 /* Equal (ordered, non-signaling) */
1578- #define _CMP_LT_OS 0x01 /* Less-than (ordered, signaling) */
1579- #define _CMP_LE_OS 0x02 /* Less-than-or-equal (ordered, signaling) */
1580- #define _CMP_UNORD_Q 0x03 /* Unordered (non-signaling) */
1581- #define _CMP_NEQ_UQ 0x04 /* Not-equal (unordered, non-signaling) */
1582- #define _CMP_NLT_US 0x05 /* Not-less-than (unordered, signaling) */
1583- #define _CMP_NLE_US 0x06 /* Not-less-than-or-equal (unordered, signaling) */
1584- #define _CMP_ORD_Q 0x07 /* Ordered (non-signaling) */
15851577#define _CMP_EQ_UQ 0x08 /* Equal (unordered, non-signaling) */
15861578#define _CMP_NGE_US 0x09 /* Not-greater-than-or-equal (unordered, signaling) */
15871579#define _CMP_NGT_US 0x0a /* Not-greater-than (unordered, signaling) */
@@ -1607,6 +1599,7 @@ _mm256_blendv_ps(__m256 __a, __m256 __b, __m256 __c)
16071599#define _CMP_GT_OQ 0x1e /* Greater-than (ordered, non-signaling) */
16081600#define _CMP_TRUE_US 0x1f /* True (unordered, signaling) */
16091601
1602+ /* Below intrinsic defined in emmintrin.h can be used for AVX */
16101603/// Compares each of the corresponding double-precision values of two
16111604/// 128-bit vectors of [2 x double], using the operation specified by the
16121605/// immediate integer operand.
@@ -1663,10 +1656,9 @@ _mm256_blendv_ps(__m256 __a, __m256 __b, __m256 __c)
16631656/// 0x1E: Greater-than (ordered, non-signaling) \n
16641657/// 0x1F: True (unordered, signaling)
16651658/// \returns A 128-bit vector of [2 x double] containing the comparison results.
1666- #define _mm_cmp_pd (a , b , c ) \
1667- ((__m128d)__builtin_ia32_cmppd((__v2df)(__m128d)(a), \
1668- (__v2df)(__m128d)(b), (c)))
1659+ /// \fn __m128d _mm_cmp_pd(__m128d a, __m128d b, const int c)
16691660
1661+ /* Below intrinsic defined in xmmintrin.h can be used for AVX */
16701662/// Compares each of the corresponding values of two 128-bit vectors of
16711663/// [4 x float], using the operation specified by the immediate integer
16721664/// operand.
@@ -1723,9 +1715,7 @@ _mm256_blendv_ps(__m256 __a, __m256 __b, __m256 __c)
17231715/// 0x1E: Greater-than (ordered, non-signaling) \n
17241716/// 0x1F: True (unordered, signaling)
17251717/// \returns A 128-bit vector of [4 x float] containing the comparison results.
1726- #define _mm_cmp_ps (a , b , c ) \
1727- ((__m128)__builtin_ia32_cmpps((__v4sf)(__m128)(a), \
1728- (__v4sf)(__m128)(b), (c)))
1718+ /// \fn __m128 _mm_cmp_ps(__m128 a, __m128 b, const int c)
17291719
17301720/// Compares each of the corresponding double-precision values of two
17311721/// 256-bit vectors of [4 x double], using the operation specified by the
@@ -1847,6 +1837,7 @@ _mm256_blendv_ps(__m256 __a, __m256 __b, __m256 __c)
18471837 ((__m256)__builtin_ia32_cmpps256((__v8sf)(__m256)(a), \
18481838 (__v8sf)(__m256)(b), (c)))
18491839
1840+ /* Below intrinsic defined in emmintrin.h can be used for AVX */
18501841/// Compares each of the corresponding scalar double-precision values of
18511842/// two 128-bit vectors of [2 x double], using the operation specified by the
18521843/// immediate integer operand.
@@ -1902,10 +1893,9 @@ _mm256_blendv_ps(__m256 __a, __m256 __b, __m256 __c)
19021893/// 0x1E: Greater-than (ordered, non-signaling) \n
19031894/// 0x1F: True (unordered, signaling)
19041895/// \returns A 128-bit vector of [2 x double] containing the comparison results.
1905- #define _mm_cmp_sd (a , b , c ) \
1906- ((__m128d)__builtin_ia32_cmpsd((__v2df)(__m128d)(a), \
1907- (__v2df)(__m128d)(b), (c)))
1896+ /// \fn __m128d _mm_cmp_sd(__m128d a, __m128d b, const int c)
19081897
1898+ /* Below intrinsic defined in xmmintrin.h can be used for AVX */
19091899/// Compares each of the corresponding scalar values of two 128-bit
19101900/// vectors of [4 x float], using the operation specified by the immediate
19111901/// integer operand.
@@ -1961,9 +1951,7 @@ _mm256_blendv_ps(__m256 __a, __m256 __b, __m256 __c)
19611951/// 0x1E: Greater-than (ordered, non-signaling) \n
19621952/// 0x1F: True (unordered, signaling)
19631953/// \returns A 128-bit vector of [4 x float] containing the comparison results.
1964- #define _mm_cmp_ss (a , b , c ) \
1965- ((__m128)__builtin_ia32_cmpss((__v4sf)(__m128)(a), \
1966- (__v4sf)(__m128)(b), (c)))
1954+ /// \fn __m128 _mm_cmp_ss(__m128 a, __m128 b, const int c)
19671955
19681956/// Takes a [8 x i32] vector and returns the vector element value
19691957/// indexed by the immediate constant operand.
0 commit comments