aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-15 09:13:22 +0200
committerMax Kellermann <max@duempel.org>2013-10-15 09:13:22 +0200
commit1dd1a705b58f1645cda679b88a2629d21adcbd07 (patch)
treeb31bab0f54729b6823ed45a458c65817e6308717 /src/pcm
parente4e80ff0cb2dc269bf56b5eb96571b681edeed05 (diff)
downloadmpd-1dd1a705b58f1645cda679b88a2629d21adcbd07.tar.gz
mpd-1dd1a705b58f1645cda679b88a2629d21adcbd07.tar.xz
mpd-1dd1a705b58f1645cda679b88a2629d21adcbd07.zip
gcc.h: major update
Copy the according file from another project (i.e. XCSoar). This will allow copying more code more easily.
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/PcmChannels.cxx36
-rw-r--r--src/pcm/PcmFormat.cxx12
2 files changed, 24 insertions, 24 deletions
diff --git a/src/pcm/PcmChannels.cxx b/src/pcm/PcmChannels.cxx
index 27a155063..a0791078c 100644
--- a/src/pcm/PcmChannels.cxx
+++ b/src/pcm/PcmChannels.cxx
@@ -38,9 +38,9 @@ MonoToStereo(D dest, S src, S end)
}
static void
-pcm_convert_channels_16_2_to_1(int16_t *restrict dest,
- const int16_t *restrict src,
- const int16_t *restrict src_end)
+pcm_convert_channels_16_2_to_1(int16_t *gcc_restrict dest,
+ const int16_t *gcc_restrict src,
+ const int16_t *gcc_restrict src_end)
{
while (src < src_end) {
int32_t a = *src++, b = *src++;
@@ -50,10 +50,10 @@ pcm_convert_channels_16_2_to_1(int16_t *restrict dest,
}
static void
-pcm_convert_channels_16_n_to_2(int16_t *restrict dest,
+pcm_convert_channels_16_n_to_2(int16_t *gcc_restrict dest,
unsigned src_channels,
- const int16_t *restrict src,
- const int16_t *restrict src_end)
+ const int16_t *gcc_restrict src,
+ const int16_t *gcc_restrict src_end)
{
unsigned c;
@@ -101,9 +101,9 @@ pcm_convert_channels_16(PcmBuffer &buffer,
}
static void
-pcm_convert_channels_24_2_to_1(int32_t *restrict dest,
- const int32_t *restrict src,
- const int32_t *restrict src_end)
+pcm_convert_channels_24_2_to_1(int32_t *gcc_restrict dest,
+ const int32_t *gcc_restrict src,
+ const int32_t *gcc_restrict src_end)
{
while (src < src_end) {
int32_t a = *src++, b = *src++;
@@ -113,10 +113,10 @@ pcm_convert_channels_24_2_to_1(int32_t *restrict dest,
}
static void
-pcm_convert_channels_24_n_to_2(int32_t *restrict dest,
+pcm_convert_channels_24_n_to_2(int32_t *gcc_restrict dest,
unsigned src_channels,
- const int32_t *restrict src,
- const int32_t *restrict src_end)
+ const int32_t *gcc_restrict src,
+ const int32_t *gcc_restrict src_end)
{
unsigned c;
@@ -165,9 +165,9 @@ pcm_convert_channels_24(PcmBuffer &buffer,
}
static void
-pcm_convert_channels_32_2_to_1(int32_t *restrict dest,
- const int32_t *restrict src,
- const int32_t *restrict src_end)
+pcm_convert_channels_32_2_to_1(int32_t *gcc_restrict dest,
+ const int32_t *gcc_restrict src,
+ const int32_t *gcc_restrict src_end)
{
while (src < src_end) {
int64_t a = *src++, b = *src++;
@@ -228,9 +228,9 @@ pcm_convert_channels_32(PcmBuffer &buffer,
}
static void
-pcm_convert_channels_float_2_to_1(float *restrict dest,
- const float *restrict src,
- const float *restrict src_end)
+pcm_convert_channels_float_2_to_1(float *gcc_restrict dest,
+ const float *gcc_restrict src,
+ const float *gcc_restrict src_end)
{
while (src < src_end) {
double a = *src++, b = *src++;
diff --git a/src/pcm/PcmFormat.cxx b/src/pcm/PcmFormat.cxx
index 6425c7cfd..b4307ca1f 100644
--- a/src/pcm/PcmFormat.cxx
+++ b/src/pcm/PcmFormat.cxx
@@ -195,9 +195,9 @@ pcm_convert_16_to_24(int32_t *out, const int16_t *in, const int16_t *in_end)
}
static void
-pcm_convert_32_to_24(int32_t *restrict out,
- const int32_t *restrict in,
- const int32_t *restrict in_end)
+pcm_convert_32_to_24(int32_t *gcc_restrict out,
+ const int32_t *gcc_restrict in,
+ const int32_t *gcc_restrict in_end)
{
while (in < in_end)
*out++ = *in++ >> 8;
@@ -300,9 +300,9 @@ pcm_convert_16_to_32(int32_t *out, const int16_t *in, const int16_t *in_end)
}
static void
-pcm_convert_24_to_32(int32_t *restrict out,
- const int32_t *restrict in,
- const int32_t *restrict in_end)
+pcm_convert_24_to_32(int32_t *gcc_restrict out,
+ const int32_t *gcc_restrict in,
+ const int32_t *gcc_restrict in_end)
{
while (in < in_end)
*out++ = *in++ << 8;