Mercurial > mplayer.hg
diff TOOLS/cpuinfo.c @ 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 | 2d996eb065d4 |
children | 5f31565951f7 |
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*