diff options
| author | comex <comexk@gmail.com> | 2014-09-22 21:02:21 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2014-09-25 18:48:00 -0400 |
| commit | fb3d9c9d58a00e6ab4e062aa45200764ac8f205a (patch) | |
| tree | 20df2802dd3f68282935ff2e6b54c67564ab969d /Source/Core/Common/x64CPUDetect.cpp | |
| parent | 9cdd842080377f3ee62a65f45183ccb270bcfa28 (diff) | |
Fix warning in x64CPUDetect.cpp in generic build by not building it.
Diffstat (limited to 'Source/Core/Common/x64CPUDetect.cpp')
| -rw-r--r-- | Source/Core/Common/x64CPUDetect.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp index 0da02d0fb4..d0dab9a256 100644 --- a/Source/Core/Common/x64CPUDetect.cpp +++ b/Source/Core/Common/x64CPUDetect.cpp @@ -13,9 +13,7 @@ #else //#include <config/i386/cpuid.h> -#ifndef _M_GENERIC #include <xmmintrin.h> -#endif #if defined __FreeBSD__ #include <sys/types.h> @@ -24,9 +22,7 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx) { -#if defined _M_GENERIC - (*eax) = (*ebx) = (*ecx) = (*edx) = 0; -#elif defined _LP64 +#if defined _LP64 // Note: EBX is reserved on Mac OS X and in PIC on Linux, so it has to // restored at the end of the asm block. __asm__ ( @@ -71,11 +67,9 @@ static void __cpuid(int info[4], int x) #define _XCR_XFEATURE_ENABLED_MASK 0 static unsigned long long _xgetbv(unsigned int index) { -#ifndef _M_GENERIC unsigned int eax, edx; __asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index)); return ((unsigned long long)edx << 32) | eax; -#endif } #endif |
