[FFmpeg-devel] [PATCH]Use pushfl/popfl in cpuid.c

Carl Eugen Hoyos cehoyos
Sun Nov 23 19:52:42 CET 2008


New try to fix compilation with icc 11.0

Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/i386/cpuid.c
===================================================================
--- libavcodec/i386/cpuid.c	(Revision 15910)
+++ libavcodec/i386/cpuid.c	(Arbeitskopie)
@@ -47,7 +47,7 @@
     __asm__ volatile (
         /* See if CPUID instruction is supported ... */
         /* ... Get copies of EFLAGS into eax and ecx */
-        "pushf\n\t"
+        "pushfl\n\t"
         "pop %0\n\t"
         "mov %0, %1\n\t"
 
@@ -55,10 +55,10 @@
         /*     to the EFLAGS reg */
         "xor $0x200000, %0\n\t"
         "push %0\n\t"
-        "popf\n\t"
+        "popfl\n\t"
 
         /* ... Get the (hopefully modified) EFLAGS */
-        "pushf\n\t"
+        "pushfl\n\t"
         "pop %0\n\t"
         : "=a" (a), "=c" (c)
         :



More information about the ffmpeg-devel mailing list