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

Allows more compiler optimizations.
This commit is contained in:
Max Kellermann 2014-05-22 13:15:04 +02:00
parent af49cace8d
commit 437caeb90f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}