29 Jun
2006
29 Jun
'06
2:47 p.m.
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*
7406
Age (days ago)
7406
Last active (days ago)
0 comments
1 participants
participants (1)
-
gpoirier