File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
#include " src/common/globals.h"
12
12
#include " src/utils/utils.h"
13
13
14
- #ifdef __SSE2__
14
+ #if defined( __SSE2__) && defined(V8_HOST_ARCH_X64)
15
15
#include < emmintrin.h>
16
16
#elif defined(__ARM_NEON__)
17
17
#include < arm_neon.h>
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct ConvertTo8BitHashReader {
23
23
DCHECK_LE (p[5 ], 0xff );
24
24
DCHECK_LE (p[6 ], 0xff );
25
25
DCHECK_LE (p[7 ], 0xff );
26
- #ifdef __SSE2__
26
+ #if defined( __SSE2__) && defined(V8_HOST_ARCH_X64)
27
27
__m128i x = _mm_loadu_si128 (reinterpret_cast <const __m128i*>(p));
28
28
return _mm_cvtsi128_si64 (_mm_packus_epi16 (x, x));
29
29
#elif defined(__ARM_NEON__)
@@ -44,7 +44,7 @@ struct ConvertTo8BitHashReader {
44
44
DCHECK_LE (p[1 ], 0xff );
45
45
DCHECK_LE (p[2 ], 0xff );
46
46
DCHECK_LE (p[3 ], 0xff );
47
- #ifdef __SSE2__
47
+ #if defined( __SSE2__) && defined(V8_HOST_ARCH_X64)
48
48
__m128i x = _mm_loadu_si64 (reinterpret_cast <const __m128i*>(p));
49
49
return _mm_cvtsi128_si64 (_mm_packus_epi16 (x, x));
50
50
#elif defined(__ARM_NEON__)
You can’t perform that action at this time.
0 commit comments