diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-12 10:50:21 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-12 10:50:21 +0000 |
commit | cb9716ac6e5d12a778f98030ca36b5403b7c12a2 (patch) | |
tree | 2af0c90b0384597a139ea5431148e8967d4c2b05 | |
parent | a0735f585933ca7834285fab5191ec867d9f936e (diff) | |
download | mpv-cb9716ac6e5d12a778f98030ca36b5403b7c12a2.tar.bz2 mpv-cb9716ac6e5d12a778f98030ca36b5403b7c12a2.tar.xz |
SSE3 support patch by Zhou Zongyi, zhouzongyi pset.suntec net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28936 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | cpudetect.c | 2 | ||||
-rw-r--r-- | cpudetect.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/cpudetect.c b/cpudetect.c index 5da169dfc0..84ae527089 100644 --- a/cpudetect.c +++ b/cpudetect.c @@ -143,6 +143,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->hasSSE3 = (regs2[2] & 1); // 0x0000001 caps->hasSSSE3 = (regs2[2] & (1 << 9 )) >> 9; // 0x0000200 caps->hasMMX2 = caps->hasSSE; // SSE cpus supports mmxext too cl_size = ((regs2[1] >> 8) & 0xFF)*8; @@ -458,6 +459,7 @@ void GetCpuCaps( CpuCaps *caps) caps->has3DNowExt=0; caps->hasSSE=0; caps->hasSSE2=0; + caps->hasSSE3=0; caps->hasSSSE3=0; caps->hasSSE4a=0; caps->isX86=0; diff --git a/cpudetect.h b/cpudetect.h index 2cc99d47eb..f31bf07dff 100644 --- a/cpudetect.h +++ b/cpudetect.h @@ -46,6 +46,7 @@ typedef struct cpucaps_s { int has3DNowExt; int hasSSE; int hasSSE2; + int hasSSE3; int hasSSSE3; int hasSSE4a; int isX86; |