[MPlayer-cvslog] r30757 - trunk/cpuinfo.c

zuxy subversion at mplayerhq.hu
Sat Feb 27 13:15:03 CET 2010


Author: zuxy
Date: Sat Feb 27 13:15:02 2010
New Revision: 30757

Log:
10l correct type for =a and =d constraints under x86-32

Modified:
   trunk/cpuinfo.c

Modified: trunk/cpuinfo.c
==============================================================================
--- trunk/cpuinfo.c	Sat Feb 27 13:10:34 2010	(r30756)
+++ trunk/cpuinfo.c	Sat Feb 27 13:15:02 2010	(r30757)
@@ -77,10 +77,10 @@ cpuid(int func) {
 static int64_t
 rdtsc(void)
 {
-  uint64_t hi, lo;
+  uint32_t hi, lo;
 #define RDTSC   ".byte 0x0f, 0x31; "
   __asm__ volatile (RDTSC : "=a"(lo), "=d"(hi) : );
-  return hi << 32 | lo;
+  return (uint64_t) hi << 32 | lo;
 }
 
 static const char*


More information about the MPlayer-cvslog mailing list