diff options
author | Max Kellermann <max@duempel.org> | 2015-06-22 14:47:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-22 16:32:06 +0200 |
commit | fdf92c5f3b05c874ba6ae74bb0e1477f1b3ca77f (patch) | |
tree | 03ce84d0722a2a2fad63ddb8f7fd71e289a4279b /src/pcm/Interleave.cxx | |
parent | 5e22c83baaff88b82b8bf2e6ae9dbdc88f8c253d (diff) | |
download | mpd-fdf92c5f3b05c874ba6ae74bb0e1477f1b3ca77f.tar.gz mpd-fdf92c5f3b05c874ba6ae74bb0e1477f1b3ca77f.tar.xz mpd-fdf92c5f3b05c874ba6ae74bb0e1477f1b3ca77f.zip |
pcm/Interleave: add "restrict" keywords
Diffstat (limited to 'src/pcm/Interleave.cxx')
-rw-r--r-- | src/pcm/Interleave.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pcm/Interleave.cxx b/src/pcm/Interleave.cxx index 8f2b11bd7..14ca53434 100644 --- a/src/pcm/Interleave.cxx +++ b/src/pcm/Interleave.cxx @@ -24,7 +24,8 @@ #include <string.h> static void -GenericPcmInterleave(uint8_t *dest, ConstBuffer<const uint8_t *> src, +GenericPcmInterleave(uint8_t *gcc_restrict dest, + ConstBuffer<const uint8_t *> src, size_t n_frames, size_t sample_size) { for (size_t frame = 0; frame < n_frames; ++frame) { @@ -37,7 +38,8 @@ GenericPcmInterleave(uint8_t *dest, ConstBuffer<const uint8_t *> src, } void -PcmInterleave(void *dest, ConstBuffer<const void *> src, +PcmInterleave(void *gcc_restrict dest, + ConstBuffer<const void *> src, size_t n_frames, size_t sample_size) { GenericPcmInterleave((uint8_t *)dest, |