aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/filters
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-10-29 11:32:50 -0700
committerChris Robinson <[email protected]>2018-10-29 11:32:50 -0700
commit903d878460056737b66c188544d6dc18c7b6dc07 (patch)
tree5ecd6c9926db3bad9977a481d618fb30dcc31f94 /Alc/filters
parent184241f2ef4935d3bf3e6df78991898bf339b92a (diff)
Replace restrict with RESTRICT
Diffstat (limited to 'Alc/filters')
-rw-r--r--Alc/filters/filter.c4
-rw-r--r--Alc/filters/nfc.c6
-rw-r--r--Alc/filters/splitter.c4
-rw-r--r--Alc/filters/splitter.h4
4 files changed, 9 insertions, 9 deletions
diff --git a/Alc/filters/filter.c b/Alc/filters/filter.c
index 2b370f89..d05b0cae 100644
--- a/Alc/filters/filter.c
+++ b/Alc/filters/filter.c
@@ -8,7 +8,7 @@
#include "defs.h"
extern inline void BiquadFilter_clear(BiquadFilter *filter);
-extern inline void BiquadFilter_copyParams(BiquadFilter *restrict dst, const BiquadFilter *restrict src);
+extern inline void BiquadFilter_copyParams(BiquadFilter *RESTRICT dst, const BiquadFilter *RESTRICT src);
extern inline void BiquadFilter_passthru(BiquadFilter *filter, ALsizei numsamples);
extern inline ALfloat calc_rcpQ_from_slope(ALfloat gain, ALfloat slope);
extern inline ALfloat calc_rcpQ_from_bandwidth(ALfloat f0norm, ALfloat bandwidth);
@@ -94,7 +94,7 @@ void BiquadFilter_setParams(BiquadFilter *filter, BiquadType type, ALfloat gain,
}
-void BiquadFilter_processC(BiquadFilter *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALsizei numsamples)
+void BiquadFilter_processC(BiquadFilter *filter, ALfloat *RESTRICT dst, const ALfloat *RESTRICT src, ALsizei numsamples)
{
const ALfloat a1 = filter->a1;
const ALfloat a2 = filter->a2;
diff --git a/Alc/filters/nfc.c b/Alc/filters/nfc.c
index 8869d1d0..8d61bb37 100644
--- a/Alc/filters/nfc.c
+++ b/Alc/filters/nfc.c
@@ -222,7 +222,7 @@ void NfcFilterAdjust(NfcFilter *nfc, const float w0)
}
-void NfcFilterProcess1(NfcFilter *nfc, float *restrict dst, const float *restrict src, const int count)
+void NfcFilterProcess1(NfcFilter *nfc, float *RESTRICT dst, const float *RESTRICT src, const int count)
{
const float gain = nfc->first.gain;
const float b1 = nfc->first.b1;
@@ -243,7 +243,7 @@ void NfcFilterProcess1(NfcFilter *nfc, float *restrict dst, const float *restric
nfc->first.z[0] = z1;
}
-void NfcFilterProcess2(NfcFilter *nfc, float *restrict dst, const float *restrict src, const int count)
+void NfcFilterProcess2(NfcFilter *nfc, float *RESTRICT dst, const float *RESTRICT src, const int count)
{
const float gain = nfc->second.gain;
const float b1 = nfc->second.b1;
@@ -269,7 +269,7 @@ void NfcFilterProcess2(NfcFilter *nfc, float *restrict dst, const float *restric
nfc->second.z[1] = z2;
}
-void NfcFilterProcess3(NfcFilter *nfc, float *restrict dst, const float *restrict src, const int count)
+void NfcFilterProcess3(NfcFilter *nfc, float *RESTRICT dst, const float *RESTRICT src, const int count)
{
const float gain = nfc->third.gain;
const float b1 = nfc->third.b1;
diff --git a/Alc/filters/splitter.c b/Alc/filters/splitter.c
index e99f4b95..6aed7493 100644
--- a/Alc/filters/splitter.c
+++ b/Alc/filters/splitter.c
@@ -27,7 +27,7 @@ void bandsplit_clear(BandSplitter *splitter)
splitter->hp_z1 = 0.0f;
}
-void bandsplit_process(BandSplitter *splitter, ALfloat *restrict hpout, ALfloat *restrict lpout,
+void bandsplit_process(BandSplitter *splitter, ALfloat *RESTRICT hpout, ALfloat *RESTRICT lpout,
const ALfloat *input, ALsizei count)
{
ALfloat lp_coeff, hp_coeff, lp_y, hp_y, d;
@@ -86,7 +86,7 @@ void splitterap_clear(SplitterAllpass *splitter)
splitter->z1 = 0.0f;
}
-void splitterap_process(SplitterAllpass *splitter, ALfloat *restrict samples, ALsizei count)
+void splitterap_process(SplitterAllpass *splitter, ALfloat *RESTRICT samples, ALsizei count)
{
ALfloat coeff, in, out;
ALfloat z1;
diff --git a/Alc/filters/splitter.h b/Alc/filters/splitter.h
index a788bc3e..b2dc9b4a 100644
--- a/Alc/filters/splitter.h
+++ b/Alc/filters/splitter.h
@@ -14,7 +14,7 @@ typedef struct BandSplitter {
void bandsplit_init(BandSplitter *splitter, ALfloat f0norm);
void bandsplit_clear(BandSplitter *splitter);
-void bandsplit_process(BandSplitter *splitter, ALfloat *restrict hpout, ALfloat *restrict lpout,
+void bandsplit_process(BandSplitter *splitter, ALfloat *RESTRICT hpout, ALfloat *RESTRICT lpout,
const ALfloat *input, ALsizei count);
/* The all-pass portion of the band splitter. Applies the same phase shift
@@ -27,7 +27,7 @@ typedef struct SplitterAllpass {
void splitterap_init(SplitterAllpass *splitter, ALfloat f0norm);
void splitterap_clear(SplitterAllpass *splitter);
-void splitterap_process(SplitterAllpass *splitter, ALfloat *restrict samples, ALsizei count);
+void splitterap_process(SplitterAllpass *splitter, ALfloat *RESTRICT samples, ALsizei count);
typedef struct FrontStablizer {