diff options
author | Chris Robinson <[email protected]> | 2012-10-14 10:16:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-14 10:27:15 -0700 |
commit | 5ac0a93fbab37cfce1b1a2546295eee37e7ee2d4 (patch) | |
tree | 4671534ed04a5b8252532231d1ced55ae11ae31b /Alc/alcModulator.c | |
parent | f7655d44a266a4eeadd7d14921363594b64ac15f (diff) |
Mark some parameters as const and/or RESTRICT
Diffstat (limited to 'Alc/alcModulator.c')
-rw-r--r-- | Alc/alcModulator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/alcModulator.c b/Alc/alcModulator.c index 46bf1717..de062151 100644 --- a/Alc/alcModulator.c +++ b/Alc/alcModulator.c @@ -84,7 +84,8 @@ static __inline ALfloat hpFilter1P(FILTER *iir, ALuint offset, ALfloat input) #define DECL_TEMPLATE(func) \ static void Process##func(ALmodulatorState *state, ALuint SamplesToDo, \ - const ALfloat *SamplesIn, ALfloat (*SamplesOut)[BUFFERSIZE]) \ + const ALfloat *RESTRICT SamplesIn, \ + ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE]) \ { \ const ALuint step = state->step; \ ALuint index = state->index; \ @@ -160,7 +161,7 @@ static ALvoid ModulatorUpdate(ALeffectState *effect, ALCdevice *Device, const AL } } -static ALvoid ModulatorProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[BUFFERSIZE]) +static ALvoid ModulatorProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *RESTRICT SamplesIn, ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE]) { ALmodulatorState *state = (ALmodulatorState*)effect; |