[xiph-commits] r12880 - trunk/theora/lib

j at svn.xiph.org j at svn.xiph.org
Mon Apr 16 21:26:53 PDT 2007


Author: j
Date: 2007-04-16 21:26:52 -0700 (Mon, 16 Apr 2007)
New Revision: 12880

Modified:
   trunk/theora/lib/cpu.c
Log:
detect Geode cpu

Modified: trunk/theora/lib/cpu.c
===================================================================
--- trunk/theora/lib/cpu.c	2007-04-16 14:40:18 UTC (rev 12879)
+++ trunk/theora/lib/cpu.c	2007-04-17 04:26:52 UTC (rev 12880)
@@ -85,8 +85,10 @@
     if(edx&0x02000000)flags|=OC_CPU_X86_MMXEXT|OC_CPU_X86_SSE;
     if(edx&0x04000000)flags|=OC_CPU_X86_SSE2;
   }
-  else if(ebx==0x68747541&&edx==0x69746e65&&ecx==0x444d4163){
+  else if(ebx==0x68747541&&edx==0x69746e65&&ecx==0x444d4163 ||
+          ebx==0x646f6547&&edx==0x79622065&&ecx==0x43534e20){
     /*AMD:*/
+    /*Geode:*/
     cpuid(0x80000000,eax,ebx,ecx,edx);
     if(eax<0x80000001)goto inteltest;
     cpuid(0x80000001,eax,ebx,ecx,edx);



More information about the commits mailing list