[MPlayer-cvslog] r18851 - trunk/TOOLS/cpuinfo.c

gpoirier subversion at mplayerhq.hu
Thu Jun 29 16:47:08 CEST 2006


Author: gpoirier
Date: Thu Jun 29 16:47:07 2006
New Revision: 18851

Modified:
   trunk/TOOLS/cpuinfo.c

Log:
merges two asm constraints to one, patch by Zuxy Meng zuxy PP meng AHH gmail PP com


Modified: trunk/TOOLS/cpuinfo.c
==============================================================================
--- trunk/TOOLS/cpuinfo.c	(original)
+++ trunk/TOOLS/cpuinfo.c	Thu Jun 29 16:47:07 2006
@@ -63,10 +63,10 @@
 static int64_t
 rdtsc(void)
 {
-  unsigned int i, j;
+  uint64_t i;
 #define RDTSC   ".byte 0x0f, 0x31; "
-  asm volatile (RDTSC : "=a"(i), "=d"(j) : );
-  return ((int64_t)j<<32) + (int64_t)i;
+  asm volatile (RDTSC : "=A"(i) : );
+  return i;
 }
 
 static const char*



More information about the MPlayer-cvslog mailing list