Misc: Swap LIKELY/UNLIKELY macros for attributes

This commit is contained in:
Stenzek
2023-09-05 21:17:11 +10:00
parent adc124c759
commit 60aca2fc4d
8 changed files with 13 additions and 22 deletions

View File

@ -2125,9 +2125,9 @@ template<PGXPMode pgxp_mode, bool debug>
if (s_trace_to_log)
LogInstruction(g_state.current_instruction.bits, g_state.current_instruction_pc, &g_state.regs);
if (UNLIKELY(g_state.current_instruction_pc == 0xA0))
if (g_state.current_instruction_pc == 0xA0) [[unlikely]]
HandleA0Syscall();
else if (UNLIKELY(g_state.current_instruction_pc == 0xB0))
else if (g_state.current_instruction_pc == 0xB0) [[unlikely]]
HandleB0Syscall();
}