diff options
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); |