mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +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
|
@ -171,7 +171,7 @@ public:
|
|||
{
|
||||
const u64 old = data.fetch_op([=](u64& data)
|
||||
{
|
||||
if (UNLIKELY(data & bit_count))
|
||||
if (data & bit_count) [[unlikely]]
|
||||
{
|
||||
data |= bit_wait;
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ public:
|
|||
{
|
||||
const u64 old = data.fetch_op([&](u64& data)
|
||||
{
|
||||
if (LIKELY(data & bit_count))
|
||||
if (data & bit_count) [[likely]]
|
||||
{
|
||||
out = static_cast<u32>(data);
|
||||
data = 0;
|
||||
|
@ -637,7 +637,7 @@ public:
|
|||
|
||||
static u32 find_raw_spu(u32 id)
|
||||
{
|
||||
if (LIKELY(id < std::size(g_raw_spu_id)))
|
||||
if (id < std::size(g_raw_spu_id)) [[likely]]
|
||||
{
|
||||
return g_raw_spu_id[id];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue