aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-22 15:11:39 -0700
committerChris Robinson <[email protected]>2013-05-22 15:11:39 -0700
commit52efb8d7f43e85659bc84455361f8685a5f493ed (patch)
tree288da908e7e58e8c32787d03032151461bca9188 /Alc/mixer_c.c
parenta6fa4a8bc291e4747d9cc66f4c76002c405bfc4e (diff)
Use restrict instead of RESTRICT
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index d9c8ca25..94257504 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -16,7 +16,7 @@ static __inline ALfloat cubic32(const ALfloat *vals, ALuint frac)
{ return cubic(vals[-1], vals[0], vals[1], vals[2], frac * (1.0f/FRACTIONONE)); }
void Resample_copy32_C(const ALfloat *data, ALuint frac,
- ALuint increment, ALfloat *RESTRICT OutBuffer, ALuint BufferSize)
+ ALuint increment, ALfloat *restrict OutBuffer, ALuint BufferSize)
{
(void)frac;
assert(increment==FRACTIONONE);
@@ -25,7 +25,7 @@ void Resample_copy32_C(const ALfloat *data, ALuint frac,
#define DECL_TEMPLATE(Sampler) \
void Resample_##Sampler##_C(const ALfloat *data, ALuint frac, \
- ALuint increment, ALfloat *RESTRICT OutBuffer, ALuint BufferSize) \
+ ALuint increment, ALfloat *restrict OutBuffer, ALuint BufferSize) \
{ \
ALuint pos = 0; \
ALuint i; \
@@ -47,10 +47,10 @@ DECL_TEMPLATE(cubic32)
#undef DECL_TEMPLATE
-static __inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*RESTRICT Values)[2],
+static __inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*restrict Values)[2],
const ALuint IrSize,
- ALfloat (*RESTRICT Coeffs)[2],
- const ALfloat (*RESTRICT CoeffStep)[2],
+ ALfloat (*restrict Coeffs)[2],
+ const ALfloat (*restrict CoeffStep)[2],
ALfloat left, ALfloat right)
{
ALuint c;
@@ -64,9 +64,9 @@ static __inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*RESTRICT Values)[2
}
}
-static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
+static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*restrict Values)[2],
const ALuint IrSize,
- ALfloat (*RESTRICT Coeffs)[2],
+ ALfloat (*restrict Coeffs)[2],
ALfloat left, ALfloat right)
{
ALuint c;
@@ -83,12 +83,12 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
#undef SUFFIX
-void MixDirect_C(const DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan,
+void MixDirect_C(const DirectParams *params, const ALfloat *restrict data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
- ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = params->OutBuffer;
- ALfloat *RESTRICT ClickRemoval = params->ClickRemoval;
- ALfloat *RESTRICT PendingClicks = params->PendingClicks;
+ ALfloat (*restrict DryBuffer)[BUFFERSIZE] = params->OutBuffer;
+ ALfloat *restrict ClickRemoval = params->ClickRemoval;
+ ALfloat *restrict PendingClicks = params->PendingClicks;
ALfloat DrySend;
ALuint pos;
ALuint c;
@@ -109,13 +109,13 @@ void MixDirect_C(const DirectParams *params, const ALfloat *RESTRICT data, ALuin
}
-void MixSend_C(const SendParams *params, const ALfloat *RESTRICT data,
+void MixSend_C(const SendParams *params, const ALfloat *restrict data,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
ALeffectslot *Slot = params->Slot;
- ALfloat (*RESTRICT WetBuffer)[BUFFERSIZE] = Slot->WetBuffer;
- ALfloat *RESTRICT WetClickRemoval = Slot->ClickRemoval;
- ALfloat *RESTRICT WetPendingClicks = Slot->PendingClicks;
+ ALfloat (*restrict WetBuffer)[BUFFERSIZE] = Slot->WetBuffer;
+ ALfloat *restrict WetClickRemoval = Slot->ClickRemoval;
+ ALfloat *restrict WetPendingClicks = Slot->PendingClicks;
ALfloat WetSend = params->Gain;
ALuint pos;