aboutsummaryrefslogtreecommitdiffstats
path: root/core/mixer/hrtfbase.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-05 15:17:39 -0800
committerChris Robinson <[email protected]>2022-12-05 15:17:39 -0800
commit4de5c7dfeebc2335ad3d7c2dd4905284677a68c9 (patch)
tree849a6f5dd7b284e1766671cc13769d257f20ea03 /core/mixer/hrtfbase.h
parentdf6d61dd40b602af55f903564358b083bb8b37e4 (diff)
Avoid some uses of the LIKELY/UNLIKELY macros
Diffstat (limited to 'core/mixer/hrtfbase.h')
-rw-r--r--core/mixer/hrtfbase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mixer/hrtfbase.h b/core/mixer/hrtfbase.h
index 606f9d4e..c8c78263 100644
--- a/core/mixer/hrtfbase.h
+++ b/core/mixer/hrtfbase.h
@@ -50,7 +50,7 @@ inline void MixHrtfBlendBase(const float *InSamples, float2 *RESTRICT AccumSampl
const ConstHrirSpan NewCoeffs{newparams->Coeffs};
const float newGainStep{newparams->GainStep};
- if LIKELY(oldparams->Gain > GainSilenceThreshold)
+ if(oldparams->Gain > GainSilenceThreshold) [[allikely]]
{
size_t ldelay{HrtfHistoryLength - oldparams->Delay[0]};
size_t rdelay{HrtfHistoryLength - oldparams->Delay[1]};
@@ -66,7 +66,7 @@ inline void MixHrtfBlendBase(const float *InSamples, float2 *RESTRICT AccumSampl
}
}
- if LIKELY(newGainStep*static_cast<float>(BufferSize) > GainSilenceThreshold)
+ if(newGainStep*static_cast<float>(BufferSize) > GainSilenceThreshold) [[allikely]]
{
size_t ldelay{HrtfHistoryLength+1 - newparams->Delay[0]};
size_t rdelay{HrtfHistoryLength+1 - newparams->Delay[1]};