Commit 437caeb9 authored by Max Kellermann's avatar Max Kellermann

decoder/vorbis: add "restrict" to pointers in vorbis_interleave()

Allows more compiler optimizations.
parent af49cace
......@@ -162,8 +162,8 @@ vorbis_interleave(float *dest, const float *const*src,
{
for (const float *const*src_end = src + channels;
src != src_end; ++src, ++dest) {
float *d = dest;
for (const float *s = *src, *s_end = s + nframes;
float *gcc_restrict d = dest;
for (const float *gcc_restrict s = *src, *s_end = s + nframes;
s != s_end; ++s, d += channels)
*d = *s;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment