From ec869234f7f69887ca02ea0982d18e8c5d3195d2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Apr 2019 08:51:50 -0700 Subject: Remove restrict from in+out parameters --- Alc/filters/splitter.cpp | 6 +++--- Alc/filters/splitter.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'Alc') diff --git a/Alc/filters/splitter.cpp b/Alc/filters/splitter.cpp index 58a5029b..8b1a4db4 100644 --- a/Alc/filters/splitter.cpp +++ b/Alc/filters/splitter.cpp @@ -61,7 +61,7 @@ void BandSplitterR::process(Real *hpout, Real *lpout, const Real *input, c } template -void BandSplitterR::applyHfScale(Real *RESTRICT samples, const Real hfscale, const int count) +void BandSplitterR::applyHfScale(Real *samples, const Real hfscale, const int count) { ASSUME(count > 0); @@ -112,7 +112,7 @@ void SplitterAllpassR::init(Real f0norm) } template -void SplitterAllpassR::process(Real *RESTRICT samples, int count) +void SplitterAllpassR::process(Real *samples, int count) { ASSUME(count > 0); @@ -120,7 +120,7 @@ void SplitterAllpassR::process(Real *RESTRICT samples, int count) Real z1{this->z1}; auto proc_sample = [coeff,&z1](const Real in) noexcept -> Real { - Real out{in*coeff + z1}; + const Real out{in*coeff + z1}; z1 = in - out*coeff; return out; }; diff --git a/Alc/filters/splitter.h b/Alc/filters/splitter.h index ccb4f104..669d9d03 100644 --- a/Alc/filters/splitter.h +++ b/Alc/filters/splitter.h @@ -17,7 +17,7 @@ public: void init(Real f0norm); void clear() noexcept { lp_z1 = lp_z2 = ap_z1 = 0.0f; } void process(Real *hpout, Real *lpout, const Real *input, const int count); - void applyHfScale(Real *RESTRICT samples, const Real hfscale, const int count); + void applyHfScale(Real *samples, const Real hfscale, const int count); }; using BandSplitter = BandSplitterR; @@ -32,7 +32,7 @@ class SplitterAllpassR { public: void init(Real f0norm); void clear() noexcept { z1 = 0.0f; } - void process(Real *RESTRICT samples, int count); + void process(Real *samples, int count); }; using SplitterAllpass = SplitterAllpassR; -- cgit v1.2.3