aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mastering.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-25 08:17:37 -0700
committerChris Robinson <[email protected]>2019-05-25 08:17:37 -0700
commitebf33b7c6b747b647eb2177080dc6f46db89867b (patch)
tree8956a70fe8b3153624129172c12ac12fffa603f3 /Alc/mastering.cpp
parent219f818b165d6997d6a2f1f8f0c5f88ba68a5db2 (diff)
Avoid some uses of RESTRICT
Diffstat (limited to 'Alc/mastering.cpp')
-rw-r--r--Alc/mastering.cpp6
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);