- Timestamp:
- Nov 13, 2020, 5:02:51 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 1e208ea
- Parents:
- a056f56 (diff), 726b748 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Stats/ResolveTime.cc
ra056f56 ra0ba5e6 27 27 namespace ResolveTime { 28 28 static inline long long rdtscl(void) { 29 unsigned int lo, hi; 30 __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi)); 31 return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 ); 29 #if defined( __i386 ) || defined( __x86_64 ) 30 unsigned int lo, hi; 31 __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi)); 32 return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 ); 33 #elif defined( __aarch64__ ) 34 int64_t value; 35 asm volatile("mrs %0, cntvct_el0" : "=r"(value)); 36 return value; 37 #else 38 #error unknown hardware architecture 39 #endif 32 40 } 33 41
Note: See TracChangeset
for help on using the changeset viewer.