Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/defs.hfa

    r98cf828 rd685cb0  
    1010// Created On       : Thu Nov  9 13:24:10 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Aug 26 16:22:32 2020
    13 // Update Count     : 20
     12// Last Modified On : Thu Aug 13 22:00:23 2020
     13// Update Count     : 19
    1414//
    1515
     
    4949
    5050static inline long long int rdtscl(void) {
    51         #if defined( __i386 ) || defined( __x86_64 )
    52         unsigned int lo, hi;
    53         __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi));
    54         return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 );
    55         #elif defined( __aarch64__ ) || defined( __arm__ )
     51        #if defined( __aarch64__ )
    5652        // https://github.com/google/benchmark/blob/v1.1.0/src/cycleclock.h#L116
    5753        long long int virtual_timer_value;
     
    5955        return virtual_timer_value;
    6056        #else
    61                 #error unsupported hardware architecture
     57        unsigned int lo, hi;
     58        __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi));
     59        return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 );
    6260        #endif // __ARM_ARCH
    6361}
Note: See TracChangeset for help on using the changeset viewer.