diff options
author | Chris Robinson <[email protected]> | 2019-02-21 17:37:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-21 17:37:02 -0800 |
commit | 1eea3cb2d1e555752b8096dd4f235c1e56242452 (patch) | |
tree | 6500864f386d6b4296f200fda15f58bc365f8de2 /Alc | |
parent | 169a11dffc459a37c61b1dc6e7d66a303a935c62 (diff) |
Remove RESTRICT from the bandsplitter process method
The compiler can see there's no aliasing with the local variables, and the
input/output buffers are handled sequentially one element at a time anyway.
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/filters/splitter.cpp | 2 | ||||
-rw-r--r-- | Alc/filters/splitter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/filters/splitter.cpp b/Alc/filters/splitter.cpp index 9e13c188..004f8215 100644 --- a/Alc/filters/splitter.cpp +++ b/Alc/filters/splitter.cpp @@ -25,7 +25,7 @@ void BandSplitterR<Real>::init(Real f0norm) } template<typename Real> -void BandSplitterR<Real>::process(Real *RESTRICT hpout, Real *RESTRICT lpout, const Real *input, int count) +void BandSplitterR<Real>::process(Real *hpout, Real *lpout, const Real *input, int count) { ASSUME(count > 0); diff --git a/Alc/filters/splitter.h b/Alc/filters/splitter.h index e1122577..f7ea608b 100644 --- a/Alc/filters/splitter.h +++ b/Alc/filters/splitter.h @@ -16,7 +16,7 @@ class BandSplitterR { public: void init(Real f0norm); void clear() noexcept { lp_z1 = lp_z2 = ap_z1 = 0.0f; } - void process(Real *RESTRICT hpout, Real *RESTRICT lpout, const Real *input, int count); + void process(Real *hpout, Real *lpout, const Real *input, int count); }; using BandSplitter = BandSplitterR<float>; |