mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd::prof: Fallback to __builtin_readcyclecounter() if available.
This commit is contained in:
parent
086dfc4839
commit
6914201335
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ noexcept
|
|||
return x86::rdtsc();
|
||||
#elif defined(__aarch64__)
|
||||
return arm::read_virtual_counter();
|
||||
#elif __has_builtin(__builtin_readcyclecounter)
|
||||
return __builtin_readcyclecounter();
|
||||
#else
|
||||
static_assert(false, "Select reference cycle counter for platform.");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue