Skip to content

Commit

Permalink
check for _M_ARM64 on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed May 14, 2020
1 parent 22d7c4c commit 320e216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quill/include/quill/detail/misc/Rdtsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 320e216

Please sign in to comment.