Skip to content

Commit a7890ea

Browse files
committed
Fix compilation error on aarch64 with gcc
1 parent 71c1d3b commit a7890ea

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source/core/common/utils.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@
5656
#include <x86intrin.h>
5757
#endif
5858

59-
#ifndef __clang__
60-
#ifndef __INTEL_COMPILER
61-
#if defined(__GNUC__) && (__GNUC__ < 10)
59+
#if defined(_M_IX86) || defined(_M_X64) || defined(__x86_64__) || defined(_M_X64) || defined(__i386__) \
60+
|| defined(_M_IX86)
61+
#ifndef __clang__
62+
#ifndef __INTEL_COMPILER
63+
#if defined(__GNUC__) && (__GNUC__ < 10)
6264
static inline void _mm256_storeu2_m128i(__m128i_u* __addr_hi, __m128i_u* __addr_lo, __m256i __a) {
6365
__m128i __v128;
6466

@@ -67,6 +69,7 @@ static inline void _mm256_storeu2_m128i(__m128i_u* __addr_hi, __m128i_u* __addr_
6769
__v128 = _mm256_extractf128_si256(__a, 1);
6870
_mm_storeu_si128(__addr_hi, __v128);
6971
}
72+
#endif
7073
#endif
7174
#endif
7275
#endif

0 commit comments

Comments
 (0)