[MPlayer-cvslog] r28936 - in trunk: cpudetect.c cpudetect.h

diego subversion at mplayerhq.hu
Thu Mar 12 11:50:22 CET 2009


Author: diego
Date: Thu Mar 12 11:50:21 2009
New Revision: 28936

Log:
SSE3 support patch by Zhou Zongyi, zhouzongyi pset.suntec net

Modified:
   trunk/cpudetect.c
   trunk/cpudetect.h

Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c	Wed Mar 11 23:55:23 2009	(r28935)
+++ trunk/cpudetect.c	Thu Mar 12 11:50:21 2009	(r28936)
@@ -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;

Modified: trunk/cpudetect.h
==============================================================================
--- trunk/cpudetect.h	Wed Mar 11 23:55:23 2009	(r28935)
+++ trunk/cpudetect.h	Thu Mar 12 11:50:21 2009	(r28936)
@@ -46,6 +46,7 @@ typedef struct cpucaps_s {
 	int has3DNowExt;
 	int hasSSE;
 	int hasSSE2;
+	int hasSSE3;
 	int hasSSSE3;
 	int hasSSE4a;
 	int isX86;



More information about the MPlayer-cvslog mailing list