aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-06-06 19:30:55 -0700
committerChris Robinson <[email protected]>2013-06-06 19:30:55 -0700
commit024374e0ce1324294dd8dd04879eb71d7e2cb531 (patch)
tree00d9c7953ebe79782a89a0f03ca358d39ac590e9 /Alc/helpers.c
parent647398d7c6b6198ca85675ae75ff0debc275fc3b (diff)
Use explicit bit offsets when checking for SSE and SSE2
Clang's cpuid.h doesn't contain the bit_* macros.
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index b9def782..fe1318ce 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -104,14 +104,12 @@ void FillCPUCaps(ALuint capfilter)
if(maxfunc >= 1 &&
__get_cpuid(1, &cpuinf[0].regs[0], &cpuinf[0].regs[1], &cpuinf[0].regs[2], &cpuinf[0].regs[3]))
{
-#ifdef bit_SSE
- if((cpuinf[0].regs[3]&bit_SSE))
+ if((cpuinf[0].regs[3]&(1<<25)))
{
caps |= CPU_CAP_SSE;
- if((cpuinf[0].regs[3]&bit_SSE2))
+ if((cpuinf[0].regs[3]&(1<<26)))
caps |= CPU_CAP_SSE2;
}
-#endif
}
}
#elif defined(HAVE_WINDOWS_H)