Common: move _M_SSE macro to Intrinsics.h
This commit is contained in:
parent
9aa463c590
commit
daf4aa0947
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue