changeset 1894:92b0270f8f8a

Applied cpu detection fix by Kjetil Torgrim Homme <kjetilho at linpro dot no>.
author atmos4
date Sat, 15 Sep 2001 22:28:55 +0000
parents bc852cdaf013
children 0213c552aa70
files mp3lib/d_cpu.s
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/d_cpu.s	Fri Sep 14 17:10:30 2001 +0000
+++ b/mp3lib/d_cpu.s	Sat Sep 15 22:28:55 2001 +0000
@@ -103,18 +103,21 @@
         movl   $0x80000000,%eax
         cpuid
         cmpl   $0x80000000,%eax
-        jbe    exit2
+        jbe    no3dnow
         movl   $0x80000001,%eax
         cpuid
         xorl   %eax,%eax
         testl  $0x80000000,%edx
-        jz     exit2
+        jz     no3dnow
 /// eax=1 - K6 3DNow!
         inc    %eax
         testl  $0x40000000,%edx
         jz     exit2
 /// eax=2 - K7 3DNowEx!	
         orl    $2, %eax
+	jmp    exit2
+no3dnow:
+	xorl   %eax,%eax
 exit2:
 
         popl   %ecx