Misc: Swap LIKELY/UNLIKELY macros for attributes

This commit is contained in:
Stenzek committed 2023-09-05 22:10:50 +10:00
1 parent adc124c759
commit 60aca2fc4d
8 files changed
+13 -22

No files matched your search

+1 -1
View File
@@ -484,7 +484,7 @@ u64 Threading::GetThreadTicksPerSecond()
// On x86, despite what the MS documentation says, this basically appears to be rdtsc.
// So, the frequency is our base clock speed (and stable regardless of power management).
static u64 frequency = 0;
if (UNLIKELY(frequency == 0))
if (frequency == 0) [[unlikely]]
{
frequency = 1000000;