0
0
Fork 0
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:
Jason Volk 2020-10-12 15:24:01 -07:00
parent 086dfc4839
commit 6914201335

View file

@ -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;