Rearranged the SSE detection. Patch by lordlyhobo.
Fixes issue 5172.
This commit is contained in:
parent
8f83a89416
commit
25eae39b7c
|
@ -139,14 +139,18 @@ private:
|
||||||
// wxWidgets does not have a true dummy macro for this.
|
// wxWidgets does not have a true dummy macro for this.
|
||||||
#define _trans(a) a
|
#define _trans(a) a
|
||||||
|
|
||||||
#if defined __APPLE__ && defined __i386__
|
#if defined __GNUC__
|
||||||
#define _M_SSE 0x300
|
# if defined __SSE4_2__
|
||||||
#elif defined __APPLE__ && defined __x86_64__
|
# define _M_SSE 0x402
|
||||||
#define _M_SSE 0x301
|
# elif defined __SSE4_1__
|
||||||
#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
|
# define _M_SSE 0x401
|
||||||
#define _M_SSE 0x301
|
# elif defined __SSSE3__
|
||||||
|
# define _M_SSE 0x301
|
||||||
|
# elif defined __SSE3__
|
||||||
|
# define _M_SSE 0x300
|
||||||
|
# endif
|
||||||
#elif (_MSC_VER >= 1500) || __INTEL_COMPILER // Visual Studio 2008
|
#elif (_MSC_VER >= 1500) || __INTEL_COMPILER // Visual Studio 2008
|
||||||
#define _M_SSE 0x402
|
# define _M_SSE 0x402
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Host communication.
|
// Host communication.
|
||||||
|
|
Loading…
Reference in New Issue