summaryrefslogtreecommitdiff
path: root/bench/bench.h
diff options
context:
space:
mode:
Diffstat (limited to 'bench/bench.h')
-rw-r--r--bench/bench.h4
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