[FFmpeg-devel] [PATCH]Do not test cpuid on x86-64

Carl Eugen Hoyos cehoyos
Sun Nov 23 20:25:45 CET 2008


These processors all support cpuid.

Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/i386/cpuid.c
===================================================================
--- libavcodec/i386/cpuid.c	(Revision 15910)
+++ libavcodec/i386/cpuid.c	(Arbeitskopie)
@@ -44,6 +44,7 @@
     int max_std_level, max_ext_level, std_caps=0, ext_caps=0;
     x86_reg a, c;
 
+#if !defined(ARCH_X86_64)
     __asm__ volatile (
         /* See if CPUID instruction is supported ... */
         /* ... Get copies of EFLAGS into eax and ecx */
@@ -67,6 +68,7 @@
 
     if (a == c)
         return 0; /* CPUID not supported */
+#endif
 
     cpuid(0, max_std_level, ebx, ecx, edx);
 



More information about the ffmpeg-devel mailing list