mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
Use attributes for LIKELY/UNLIKELY
Remove LIKELY/UNLIKELY macro.
This commit is contained in:
parent
49e11b7cfd
commit
c0f80cfe7a
56 changed files with 482 additions and 493 deletions
|
@ -26,7 +26,7 @@ protected:
|
|||
const s32 value = m_value.load();
|
||||
|
||||
// Conditional decrement
|
||||
if (UNLIKELY(value <= 0 || !m_value.compare_and_swap_test(value, value - 1)))
|
||||
if (value <= 0 || !m_value.compare_and_swap_test(value, value - 1)) [[unlikely]]
|
||||
{
|
||||
imp_wait();
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ protected:
|
|||
// Unconditional increment
|
||||
const s32 value = m_value.fetch_add(1);
|
||||
|
||||
if (UNLIKELY(value < 0 || value >= _max))
|
||||
if (value < 0 || value >= _max) [[unlikely]]
|
||||
{
|
||||
imp_post(value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue