Use attributes for LIKELY/UNLIKELY

Remove LIKELY/UNLIKELY macro.
This commit is contained in:
Nekotekina 2020-02-05 10:00:08 +03:00
parent 49e11b7cfd
commit c0f80cfe7a
56 changed files with 482 additions and 493 deletions

View file

@ -299,7 +299,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
{
const u32 cmask = get_code_mask(j, j + 64);
if (UNLIKELY(cmask == 0))
if (cmask == 0) [[unlikely]]
{
continue;
}
@ -424,7 +424,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
{
const u32 cmask = get_code_mask(j, j + 32);
if (UNLIKELY(cmask == 0))
if (cmask == 0) [[unlikely]]
{
continue;
}
@ -549,7 +549,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
{
const u32 cmask = get_code_mask(j, j + 32);
if (UNLIKELY(cmask == 0))
if (cmask == 0) [[unlikely]]
{
continue;
}
@ -646,7 +646,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
{
const u32 cmask = get_code_mask(j, j + 16);
if (UNLIKELY(cmask == 0))
if (cmask == 0) [[unlikely]]
{
continue;
}