From 320e216211be9b6501a640f342e001c6e756bf0e Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Thu, 14 May 2020 21:31:00 +0100 Subject: [PATCH] check for _M_ARM64 on windows --- quill/include/quill/detail/misc/Rdtsc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quill/include/quill/detail/misc/Rdtsc.h b/quill/include/quill/detail/misc/Rdtsc.h index 1c3026bb..8fcf3df2 100644 --- a/quill/include/quill/detail/misc/Rdtsc.h +++ b/quill/include/quill/detail/misc/Rdtsc.h @@ -30,7 +30,7 @@ QUILL_NODISCARD_ALWAYS_INLINE_HOT uint64_t rdtsc() noexcept asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value)); return virtual_timer_value; } -#elif (__ARM_ARCH >= 6) +#elif ((__ARM_ARCH >= 6) || defined(_M_ARM64)) // V6 is the earliest arch that has a standard cyclecount QUILL_NODISCARD_ALWAYS_INLINE_HOT uint64_t rdtsc() noexcept {