Skip to content

Commit 37fea3c

Browse files
committed
clang 19
1 parent 754bae6 commit 37fea3c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

jsrc/avxintrin-emu.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
#endif
109109

110110
#if !defined (__SSE4_2__) && !defined (__SSE4_1__)
111+
/* clang 19 defines these macro */
111112
#undef _mm_blend_pd
112113
#undef _mm_blend_ps
113114
#undef _mm_blendv_pd
@@ -122,6 +123,7 @@
122123
#undef _mm_max_epu32
123124
#undef _mm_testc_si128
124125
#undef _mm_testnzc_si128
126+
125127
#undef _mm_testz_si128
126128
#define _mm_blend_pd _mm_blend_pd_REF
127129
#define _mm_blend_ps _mm_blend_ps_SSE2
@@ -707,6 +709,40 @@ static __emu_inline __emu_int64_t __emu_mm256_extract_epi64( __emu__m256i a, con
707709
/*
708710
* Compare predicates for scalar and packed compare intrinsics
709711
*/
712+
/* clang 19 defines these macro */
713+
#undef _CMP_EQ_OQ
714+
#undef _CMP_LT_OS
715+
#undef _CMP_LE_OS
716+
#undef _CMP_UNORD_Q
717+
#undef _CMP_NEQ_UQ
718+
#undef _CMP_NLT_US
719+
#undef _CMP_NLE_US
720+
#undef _CMP_ORD_Q
721+
#undef _CMP_EQ_UQ
722+
#undef _CMP_NGE_US
723+
#undef _CMP_NGT_US
724+
#undef _CMP_FALSE_OQ
725+
#undef _CMP_NEQ_OQ
726+
#undef _CMP_GE_OS
727+
#undef _CMP_GT_OS
728+
#undef _CMP_TRUE_UQ
729+
#undef _CMP_EQ_OS
730+
#undef _CMP_LT_OQ
731+
#undef _CMP_LE_OQ
732+
#undef _CMP_UNORD_S
733+
#undef _CMP_NEQ_US
734+
#undef _CMP_NLT_UQ
735+
#undef _CMP_NLE_UQ
736+
#undef _CMP_ORD_S
737+
#undef _CMP_EQ_US
738+
#undef _CMP_NGE_UQ
739+
#undef _CMP_NGT_UQ
740+
#undef _CMP_FALSE_OS
741+
#undef _CMP_NEQ_OS
742+
#undef _CMP_GE_OQ
743+
#undef _CMP_GT_OQ
744+
#undef _CMP_TRUE_US
745+
710746
#define _CMP_EQ_OQ 0x00 /* Equal (ordered, nonsignaling) */
711747
#define _CMP_LT_OS 0x01 /* Less-than (ordered, signaling) */
712748
#define _CMP_LE_OS 0x02 /* Less-than-or-equal (ordered, signaling) */
@@ -1783,6 +1819,15 @@ static __emu_inline __emu__m256i __emu_mm256_sllv_epi64(__emu__m256i a, __emu__m
17831819
#define __m256i __emu__m256i
17841820
#define __m256d __emu__m256d
17851821

1822+
/* clang 19 defines these macro */
1823+
#define _mm256_blend_pd
1824+
#define _mm256_blend_ps
1825+
#define _mm256_dp_ps
1826+
#define _mm256_shuffle_pd
1827+
#define _mm256_shuffle_ps
1828+
#define _mm256_cmp_pd
1829+
#define _mm256_cmp_ps
1830+
17861831
#define _mm256_add_pd __emu_mm256_add_pd
17871832
#define _mm256_add_ps __emu_mm256_add_ps
17881833

0 commit comments

Comments
 (0)