[MPlayer-cvslog] r31904 - trunk/cpudetect.c

reimar subversion at mplayerhq.hu
Mon Aug 2 19:36:16 CEST 2010


Author: reimar
Date: Mon Aug  2 19:36:16 2010
New Revision: 31904

Log:
Remove outdated cpuid code.

Modified:
   trunk/cpudetect.c

Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c	Mon Aug  2 19:32:42 2010	(r31903)
+++ trunk/cpudetect.c	Mon Aug  2 19:36:16 2010	(r31904)
@@ -92,13 +92,6 @@ static int has_cpuid(void)
 static void
 do_cpuid(unsigned int ax, unsigned int *p)
 {
-#if 0
-    __asm__ volatile(
-        "cpuid;"
-        : "=a" (p[0]), "=b" (p[1]), "=c" (p[2]), "=d" (p[3])
-        :  "0" (ax)
-        );
-#else
 // code from libavcodec:
     __asm__ volatile
         ("mov %%"REG_b", %%"REG_S"\n\t"
@@ -107,7 +100,6 @@ do_cpuid(unsigned int ax, unsigned int *
          : "=a" (p[0]), "=S" (p[1]),
            "=c" (p[2]), "=d" (p[3])
          : "0" (ax));
-#endif
 }
 
 void GetCpuCaps( CpuCaps *caps)


More information about the MPlayer-cvslog mailing list