diff options
author | Chris Robinson <[email protected]> | 2019-05-25 08:17:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-25 08:17:37 -0700 |
commit | ebf33b7c6b747b647eb2177080dc6f46db89867b (patch) | |
tree | 8956a70fe8b3153624129172c12ac12fffa603f3 /Alc/mastering.cpp | |
parent | 219f818b165d6997d6a2f1f8f0c5f88ba68a5db2 (diff) |
Avoid some uses of RESTRICT
Diffstat (limited to 'Alc/mastering.cpp')
-rw-r--r-- | Alc/mastering.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Alc/mastering.cpp b/Alc/mastering.cpp index c71b3cc9..23386cf4 100644 --- a/Alc/mastering.cpp +++ b/Alc/mastering.cpp @@ -464,11 +464,7 @@ void Compressor::process(const ALsizei SamplesToDo, ALfloat (*OutBuffer)[BUFFERS { ALfloat *buffer{al::assume_aligned<16>(input)}; const ALfloat *gains{al::assume_aligned<16>(&sideChain[0])}; - /* Mark the gains "input-1 type" as restrict, so the compiler can - * vectorize this loop (otherwise it assumes a write to buffer[n] can - * change gains[n+1]). - */ - std::transform<const ALfloat*RESTRICT>(gains, gains+SamplesToDo, buffer, buffer, + std::transform(gains, gains+SamplesToDo, buffer, buffer, std::bind(std::multiplies<float>{}, _1, _2)); }; std::for_each(OutBuffer, OutBuffer+numChans, apply_comp); |