diff mp3lib/d_cpu.s @ 1253:87a31bbadd9a

Minor fixes
author nick
date Mon, 02 Jul 2001 08:07:41 +0000
parents 03b7e2955a20
children 92b0270f8f8a
line wrap: on
line diff
--- a/mp3lib/d_cpu.s	Sun Jul 01 23:05:18 2001 +0000
+++ b/mp3lib/d_cpu.s	Mon Jul 02 08:07:41 2001 +0000
@@ -48,7 +48,7 @@
 /  in C: unsigled long ipentium( void );
 /  return: 0 if this processor i386 or i486
 /          1 otherwise
-/          2 if this cpu supports mmx
+/          3 if this cpu supports mmx
 / ---------------------------------------------------------------------------
 ipentium:
         pushl  %ebx
@@ -74,7 +74,7 @@
         incl   %eax
 	test   $0x00800000, %edx
 	jz     exit
-	incl   %eax
+	orl    $2, %eax
         jmp    exit
 no_cpuid:
         xorl   %eax,%eax
@@ -88,7 +88,7 @@
 /  in C: unsigned long a3dnow( void );
 /  return: 0 if this processor does not support 3dnow!
 /          1 otherwise
-/          2 if this cpu supports 3dnow-dsp extension
+/          3 if this cpu supports 3dnow-dsp extension
 / ---------------------------------------------------------------------------
 a3dnow:
         pushl  %ebx
@@ -114,7 +114,7 @@
         testl  $0x40000000,%edx
         jz     exit2
 /// eax=2 - K7 3DNowEx!	
-        inc    %eax
+        orl    $2, %eax
 exit2:
 
         popl   %ecx
@@ -126,7 +126,7 @@
 /  in C: unsigned long isse( void );
 /  return: 0 if this processor does not support sse
 /          1 otherwise
-/          2 if this cpu supports sse2 extension
+/          3 if this cpu supports sse2 extension
 / ---------------------------------------------------------------------------
 isse:
         pushl  %ebx
@@ -145,7 +145,7 @@
 	incl   %eax
         testl  $0x04000000,%edx
         jz     exit3
-        incl   %eax
+        orl    $2, %eax
 exit3:
         popl   %ecx
         popl   %edx