]> granicus.if.org Git - libx264/commitdiff
* cpu.asm: mmh trashing ebp,esi and edi isn't a good idea I fear ;)
authorLaurent Aimar <fenrir@videolan.org>
Fri, 16 Jul 2004 18:26:19 +0000 (18:26 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 16 Jul 2004 18:26:19 +0000 (18:26 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@12 df754926-b1dd-0310-bc7b-ec298dee348c

core/i386/cpu.asm

index 06ac1e057b76e5d749fff0827dcf9bbf387fa8bf..729ece64f6723924cb97e7372833a7c98ef0e05e 100644 (file)
@@ -53,6 +53,9 @@ ALIGN 16
 x264_cpu_cpuid_test:
     pushfd
     push    ebx
+    push    ebp
+    push    esi
+    push    edi
 
     pushfd
     pop     eax
@@ -64,6 +67,9 @@ x264_cpu_cpuid_test:
     pop     eax
     xor     eax, ebx
     
+    pop     edi
+    pop     esi
+    pop     ebp
     pop     ebx
     popfd
     ret