summaryrefslogtreecommitdiffstats
path: root/cpudetect.c
diff options
context:
space:
mode:
authorzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-30 09:17:21 +0000
committerzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-30 09:17:21 +0000
commit54c23a5806d5928e6f6278b79fbdb6c89c6cb608 (patch)
tree555a9001ff980c209f6f236253d0dbd668a32e96 /cpudetect.c
parentbd7e915bf50b24b8a1316ad99667d01e7175087a (diff)
downloadmpv-54c23a5806d5928e6f6278b79fbdb6c89c6cb608.tar.bz2
mpv-54c23a5806d5928e6f6278b79fbdb6c89c6cb608.tar.xz
Correct detection of SSSE3 and SSE4a feature bits.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28049 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cpudetect.c')
-rw-r--r--cpudetect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpudetect.c b/cpudetect.c
index ffd0705e0e..a20baa88cd 100644
--- a/cpudetect.c
+++ b/cpudetect.c
@@ -153,8 +153,7 @@ void GetCpuCaps( CpuCaps *caps)
caps->hasMMX = (regs2[3] & (1 << 23 )) >> 23; // 0x0800000
caps->hasSSE = (regs2[3] & (1 << 25 )) >> 25; // 0x2000000
caps->hasSSE2 = (regs2[3] & (1 << 26 )) >> 26; // 0x4000000
- caps->hasSSSE3 = (regs2[3] & (1 << 9 )) >> 9; // 0x0000200
- caps->hasSSE4a = (regs2[3] & (1 << 6 )) >> 6; // 0x0000040
+ caps->hasSSSE3 = (regs2[2] & (1 << 9 )) >> 9; // 0x0000200
caps->hasMMX2 = caps->hasSSE; // SSE cpus supports mmxext too
cl_size = ((regs2[1] >> 8) & 0xFF)*8;
if(cl_size) caps->cl_size = cl_size;
@@ -176,6 +175,7 @@ void GetCpuCaps( CpuCaps *caps)
caps->hasMMX2 |= (regs2[3] & (1 << 22 )) >> 22; // 0x400000
caps->has3DNow = (regs2[3] & (1 << 31 )) >> 31; //0x80000000
caps->has3DNowExt = (regs2[3] & (1 << 30 )) >> 30;
+ caps->hasSSE4a = (regs2[2] & (1 << 6 )) >> 6; // 0x0000040
}
if(regs[0]>=0x80000006)
{