# HG changeset patch # User gpoirier # Date 1151592427 0 # Node ID 0e2d54a7cb61d90380ad0a3576e490f86d208779 # Parent 2e73bc9d4b1cad1e5a7b3aa5929458d352356624 merges two asm constraints to one, patch by Zuxy Meng zuxy PP meng AHH gmail PP com diff -r 2e73bc9d4b1c -r 0e2d54a7cb61 TOOLS/cpuinfo.c --- a/TOOLS/cpuinfo.c Thu Jun 29 08:18:08 2006 +0000 +++ b/TOOLS/cpuinfo.c Thu Jun 29 14:47:07 2006 +0000 @@ -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*