From daf4aa09471a0113315fa49aa8409bfc9ba947fd Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 23 Feb 2015 21:50:35 +0100 Subject: [PATCH] Common: move _M_SSE macro to Intrinsics.h --- Source/Core/Common/Common.h | 16 ---------------- Source/Core/Common/Intrinsics.h | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Source/Core/Common/Common.h b/Source/Core/Common/Common.h index 1dcf4a7ce4..29dbbec1ce 100644 --- a/Source/Core/Common/Common.h +++ b/Source/Core/Common/Common.h @@ -129,22 +129,6 @@ private: // wxWidgets does not have a true dummy macro for this. #define _trans(a) a -#if defined _M_GENERIC -# define _M_SSE 0x0 -#elif defined __GNUC__ -# if defined __SSE4_2__ -# define _M_SSE 0x402 -# elif defined __SSE4_1__ -# define _M_SSE 0x401 -# elif defined __SSSE3__ -# define _M_SSE 0x301 -# elif defined __SSE3__ -# define _M_SSE 0x300 -# endif -#elif (_MSC_VER >= 1500) || __INTEL_COMPILER // Visual Studio 2008 -# define _M_SSE 0x402 -#endif - // Host communication. enum HOST_COMM { diff --git a/Source/Core/Common/Intrinsics.h b/Source/Core/Common/Intrinsics.h index d5ea887e2b..911692e6de 100644 --- a/Source/Core/Common/Intrinsics.h +++ b/Source/Core/Common/Intrinsics.h @@ -32,4 +32,20 @@ _mm_shuffle_epi8(__m128i a, __m128i mask) } #endif +#if defined _M_GENERIC +# define _M_SSE 0 +#elif _MSC_VER || __INTEL_COMPILER +# define _M_SSE 0x402 +#elif defined __GNUC__ +# if defined __SSE4_2__ +# define _M_SSE 0x402 +# elif defined __SSE4_1__ +# define _M_SSE 0x401 +# elif defined __SSSE3__ +# define _M_SSE 0x301 +# elif defined __SSE3__ +# define _M_SSE 0x300 +# endif +#endif + #endif // _M_X86