[xiph-commits] r12890 - trunk/theora-exp/lib/x86
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Fri Apr 20 08:14:26 PDT 2007
Author: tterribe
Date: 2007-04-20 08:14:26 -0700 (Fri, 20 Apr 2007)
New Revision: 12890
Modified:
trunk/theora-exp/lib/x86/cpu.c
Log:
Port of r12880 to add Geodes to the CPU detection.
Modified: trunk/theora-exp/lib/x86/cpu.c
===================================================================
--- trunk/theora-exp/lib/x86/cpu.c 2007-04-18 08:17:04 UTC (rev 12889)
+++ trunk/theora-exp/lib/x86/cpu.c 2007-04-20 15:14:26 UTC (rev 12890)
@@ -80,8 +80,9 @@
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){
- /*AMD:*/
+ 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