aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-22 13:15:04 +0200
committerMax Kellermann <max@duempel.org>2014-05-22 13:52:00 +0200
commit437caeb90f5e44bb95793c1a34bf95ce5cc6e8ff (patch)
tree7925147b29a6798a0313fb5d93c6341e0d205a0d /src/decoder
parentaf49cace8d6e260ed0753e88cf597b30199a6675 (diff)
downloadmpd-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 '')
-rw-r--r--src/decoder/plugins/VorbisDecoderPlugin.cxx4
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;
}