From 1eea3cb2d1e555752b8096dd4f235c1e56242452 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 21 Feb 2019 17:37:02 -0800 Subject: 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. --- Alc/filters/splitter.cpp | 2 +- Alc/filters/splitter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') 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::init(Real f0norm) } template -void BandSplitterR::process(Real *RESTRICT hpout, Real *RESTRICT lpout, const Real *input, int count) +void BandSplitterR::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; -- cgit v1.2.3