diff options
author | Chris Robinson <[email protected]> | 2023-01-13 13:35:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-13 13:35:21 -0800 |
commit | e11cae32067a7ab84b51e5483470020251c943d5 (patch) | |
tree | b885d734a8bae408e1ebcb78e2246adec8ab39ef /core/mixer | |
parent | dd2f72ce90bcc0ffcfe2874778e7b2b2ef31ebe3 (diff) |
Ensure the mixer helpers are properly inlined
Diffstat (limited to 'core/mixer')
-rw-r--r-- | core/mixer/mixer_c.cpp | 5 | ||||
-rw-r--r-- | core/mixer/mixer_neon.cpp | 6 | ||||
-rw-r--r-- | core/mixer/mixer_sse.cpp | 6 |
3 files changed, 9 insertions, 8 deletions
diff --git a/core/mixer/mixer_c.cpp b/core/mixer/mixer_c.cpp index 8137d866..9ac2a9c4 100644 --- a/core/mixer/mixer_c.cpp +++ b/core/mixer/mixer_c.cpp @@ -96,8 +96,9 @@ inline void ApplyCoeffs(float2 *RESTRICT Values, const size_t IrSize, const Cons } } -inline void MixLine(const al::span<const float> InSamples, float *RESTRICT dst, float &CurrentGain, - const float TargetGain, const float delta, const size_t min_len, size_t Counter) +force_inline void MixLine(const al::span<const float> InSamples, float *RESTRICT dst, + float &CurrentGain, const float TargetGain, const float delta, const size_t min_len, + size_t Counter) { float gain{CurrentGain}; const float step{(TargetGain-gain) * delta}; diff --git a/core/mixer/mixer_neon.cpp b/core/mixer/mixer_neon.cpp index 68e6bc57..5a91da60 100644 --- a/core/mixer/mixer_neon.cpp +++ b/core/mixer/mixer_neon.cpp @@ -56,9 +56,9 @@ inline void ApplyCoeffs(float2 *RESTRICT Values, const size_t IrSize, const Cons } } -inline void MixLine(const al::span<const float> InSamples, float *RESTRICT dst, float &CurrentGain, - const float TargetGain, const float delta, const size_t min_len, const size_t aligned_len, - size_t Counter) +force_inline void MixLine(const al::span<const float> InSamples, float *RESTRICT dst, + float &CurrentGain, const float TargetGain, const float delta, const size_t min_len, + const size_t aligned_len, size_t Counter) { float gain{CurrentGain}; const float step{(TargetGain-gain) * delta}; diff --git a/core/mixer/mixer_sse.cpp b/core/mixer/mixer_sse.cpp index 702f9bd4..6baad7fb 100644 --- a/core/mixer/mixer_sse.cpp +++ b/core/mixer/mixer_sse.cpp @@ -73,9 +73,9 @@ inline void ApplyCoeffs(float2 *RESTRICT Values, const size_t IrSize, const Cons } } -inline void MixLine(const al::span<const float> InSamples, float *RESTRICT dst, float &CurrentGain, - const float TargetGain, const float delta, const size_t min_len, const size_t aligned_len, - size_t Counter) +force_inline void MixLine(const al::span<const float> InSamples, float *RESTRICT dst, + float &CurrentGain, const float TargetGain, const float delta, const size_t min_len, + const size_t aligned_len, size_t Counter) { float gain{CurrentGain}; const float step{(TargetGain-gain) * delta}; |