changeset 18847:0e2d54a7cb61

merges two asm constraints to one, patch by Zuxy Meng zuxy PP meng AHH gmail PP com
author gpoirier
date Thu, 29 Jun 2006 14:47:07 +0000
parents 2e73bc9d4b1c
children 2029204dd999
files TOOLS/cpuinfo.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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*