From 90587fc74497f8befcfd1a8ba6ae4b23173939c4 Mon Sep 17 00:00:00 2001 From: gpoirier Date: Thu, 29 Jun 2006 14:47:07 +0000 Subject: merges two asm constraints to one, patch by Zuxy Meng zuxy PP meng AHH gmail PP com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18851 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/cpuinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/cpuinfo.c b/TOOLS/cpuinfo.c index d6c47cbf2d..25c6d1d6b4 100644 --- a/TOOLS/cpuinfo.c +++ b/TOOLS/cpuinfo.c @@ -63,10 +63,10 @@ cpuid(int func) { 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* -- cgit v1.2.3