diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-29 14:47:07 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-29 14:47:07 +0000 |
commit | 90587fc74497f8befcfd1a8ba6ae4b23173939c4 (patch) | |
tree | 1491accbf0360c628683bceadca1d02fee012227 /TOOLS | |
parent | 7c0ade5e0276877bf3855c6ade09c7f422bd3266 (diff) | |
download | mpv-90587fc74497f8befcfd1a8ba6ae4b23173939c4.tar.bz2 mpv-90587fc74497f8befcfd1a8ba6ae4b23173939c4.tar.xz |
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
Diffstat (limited to 'TOOLS')
-rw-r--r-- | TOOLS/cpuinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
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* |