diff options
-rw-r--r-- | common/opthelpers.h | 2 | ||||
-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 |
4 files changed, 10 insertions, 9 deletions
diff --git a/common/opthelpers.h b/common/opthelpers.h index 6b0c8db9..95ff781a 100644 --- a/common/opthelpers.h +++ b/common/opthelpers.h @@ -12,7 +12,7 @@ #endif #ifdef __GNUC__ -#define force_inline [[gnu::always_inline]] +#define force_inline [[gnu::always_inline]] inline #elif defined(_MSC_VER) #define force_inline __forceinline #else 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}; |