mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +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
|
@ -237,7 +237,7 @@ void GLFragmentDecompilerThread::insertMainStart(std::stringstream & OS)
|
|||
for (auto ®_name : output_registers)
|
||||
{
|
||||
const auto type = (reg_name[0] == 'r' || !device_props.has_native_half_support)? "vec4" : half4;
|
||||
if (LIKELY(reg_type == type))
|
||||
if (reg_type == type) [[likely]]
|
||||
{
|
||||
registers += ", " + reg_name + " = " + type + "(0.)";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue