From 903d878460056737b66c188544d6dc18c7b6dc07 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 29 Oct 2018 11:32:50 -0700 Subject: Replace restrict with RESTRICT --- Alc/filters/filter.c | 4 ++-- Alc/filters/nfc.c | 6 +++--- Alc/filters/splitter.c | 4 ++-- Alc/filters/splitter.h | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'Alc/filters') 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 { -- cgit v1.2.3