diff options
author | Max Kellermann <max@duempel.org> | 2014-05-22 13:15:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-22 13:52:00 +0200 |
commit | 437caeb90f5e44bb95793c1a34bf95ce5cc6e8ff (patch) | |
tree | 7925147b29a6798a0313fb5d93c6341e0d205a0d /src | |
parent | af49cace8d6e260ed0753e88cf597b30199a6675 (diff) | |
download | mpd-437caeb90f5e44bb95793c1a34bf95ce5cc6e8ff.tar.gz mpd-437caeb90f5e44bb95793c1a34bf95ce5cc6e8ff.tar.xz mpd-437caeb90f5e44bb95793c1a34bf95ce5cc6e8ff.zip |
decoder/vorbis: add "restrict" to pointers in vorbis_interleave()
Allows more compiler optimizations.
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder/plugins/VorbisDecoderPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/VorbisDecoderPlugin.cxx b/src/decoder/plugins/VorbisDecoderPlugin.cxx index 43758c0f6..052dff420 100644 --- a/src/decoder/plugins/VorbisDecoderPlugin.cxx +++ b/src/decoder/plugins/VorbisDecoderPlugin.cxx @@ -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; } |