From 5674c3e241c7a52d802dd6a29aca419c4ea5ba57 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Tue, 23 Feb 2016 16:08:18 +0000 Subject: [PATCH] cycle count fix for x86 --- lib/PerfCount.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PerfCount.h b/lib/PerfCount.h index 100ce321..a45b1e23 100644 --- a/lib/PerfCount.h +++ b/lib/PerfCount.h @@ -64,7 +64,8 @@ inline uint64_t cyclecount(void){ asm volatile ("mfspr %0,0x10C" : "=&r" (tmp) ); return tmp; } -#elif defined __i386__ +#elif defined __x86_64__ +#include inline uint64_t cyclecount(void){ return __rdtsc(); }