aboutsummaryrefslogtreecommitdiffstats
path: root/core/mixer
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-13 13:35:21 -0800
committerChris Robinson <[email protected]>2023-01-13 13:35:21 -0800
commite11cae32067a7ab84b51e5483470020251c943d5 (patch)
treeb885d734a8bae408e1ebcb78e2246adec8ab39ef /core/mixer
parentdd2f72ce90bcc0ffcfe2874778e7b2b2ef31ebe3 (diff)
Ensure the mixer helpers are properly inlined
Diffstat (limited to 'core/mixer')
-rw-r--r--core/mixer/mixer_c.cpp5
-rw-r--r--core/mixer/mixer_neon.cpp6
-rw-r--r--core/mixer/mixer_sse.cpp6
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};