From 9ca1c043304f18dc70cdb48f32c9a7f7e612a041 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 2 Mar 2021 22:37:47 +0000 Subject: [PATCH] Build: Fix use of xmmintrin.h on non-x86 MSVC builds --- src/stdafx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdafx.h b/src/stdafx.h index 7bddb97df9..ae94b10c63 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -526,7 +526,7 @@ static inline void free(const void *ptr) * Using _mm_prefetch() with gcc implies the compile flag -msse. * This is not the case with __builtin_prefetch() so the latter can be used in normal .cpp files. */ -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) #define INCLUDE_FOR_PREFETCH_NTA #define PREFETCH_NTA(address) _mm_prefetch((const char *) (address), _MM_HINT_NTA); #elif defined(__GNUC__) || defined(__clang__)