mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
cycle count fix for x86
This commit is contained in:
parent
62c4ba0d1e
commit
5674c3e241
@ -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 <x86intrin.h>
|
||||
inline uint64_t cyclecount(void){
|
||||
return __rdtsc();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user