diff options
author | Chris Robinson <[email protected]> | 2022-12-05 15:17:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-12-05 15:17:39 -0800 |
commit | 4de5c7dfeebc2335ad3d7c2dd4905284677a68c9 (patch) | |
tree | 849a6f5dd7b284e1766671cc13769d257f20ea03 /core/voice.cpp | |
parent | df6d61dd40b602af55f903564358b083bb8b37e4 (diff) |
Avoid some uses of the LIKELY/UNLIKELY macros
Diffstat (limited to 'core/voice.cpp')
-rw-r--r-- | core/voice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/voice.cpp b/core/voice.cpp index 2a524215..0b4884a0 100644 --- a/core/voice.cpp +++ b/core/voice.cpp @@ -473,7 +473,7 @@ void Voice::mix(const State vstate, ContextBase *Context, const nanoseconds devi VoiceBufferItem *BufferListItem{mCurrentBuffer.load(std::memory_order_relaxed)}; VoiceBufferItem *BufferLoopItem{mLoopBuffer.load(std::memory_order_relaxed)}; const uint increment{mStep}; - if UNLIKELY(increment < 1) + if(increment < 1) [[alunlikely]] { /* If the voice is supposed to be stopping but can't be mixed, just * stop it before bailing. @@ -536,7 +536,7 @@ void Voice::mix(const State vstate, ContextBase *Context, const nanoseconds devi } } } - else if UNLIKELY(!BufferListItem) + else if(!BufferListItem) [[alunlikely]] Counter = std::min(Counter, 64u); std::array<float*,DeviceBase::MixerChannelsMax> SamplePointers; |