From ebf33b7c6b747b647eb2177080dc6f46db89867b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 25 May 2019 08:17:37 -0700 Subject: Avoid some uses of RESTRICT --- Alc/mastering.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Alc/mastering.cpp') 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(gains, gains+SamplesToDo, buffer, buffer, + std::transform(gains, gains+SamplesToDo, buffer, buffer, std::bind(std::multiplies{}, _1, _2)); }; std::for_each(OutBuffer, OutBuffer+numChans, apply_comp); -- cgit v1.2.3