diff options
author | Dave Jones <davej@redhat.com> | 2009-10-26 17:30:53 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2009-10-26 17:30:53 -0400 |
commit | 3cd4e407f8d810066395610f951e6671c52f22bb (patch) | |
tree | b454ac114dfabf24bcfcaf7b042e8672be9793fe /bench | |
parent | 423620b83d8ffdf760eaad25cd62bc1081158863 (diff) |
Do the rdtsc cleanup how I meant to do it the first time.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/bench.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bench/bench.h b/bench/bench.h index b463dfa..f1b6016 100644 --- a/bench/bench.h +++ b/bench/bench.h @@ -1,11 +1,9 @@ static inline unsigned long long int rdtsc(void) { unsigned int low, high; - unsigned long tsc; __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high)); - tsc = ((unsigned long long) high << 32) | low; - return tsc; + return ((unsigned long long int)high << 32) | low; } #define NREPS 1000 |