aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-26 00:07:39 -0700
committerChris Robinson <[email protected]>2016-07-26 00:07:39 -0700
commit45514ee32f8566d35d6153a64c575dfde256d941 (patch)
tree121bc0a4a74b6bb8e80b40fc4b674f55283ad362
parent11b38e11907ea383544bcf902f9ea891f4a3a5a4 (diff)
Add some more restrict keywords
-rw-r--r--Alc/mixer_c.c2
-rw-r--r--OpenAL32/Include/alFilter.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index 7dca7a61..5b3e7b74 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -93,7 +93,7 @@ const ALfloat *Resample_bsinc32_C(const BsincState *state, const ALfloat *src, A
}
-void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *src, ALuint numsamples)
+void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALuint numsamples)
{
ALuint i;
if(numsamples > 1)
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h
index 8012e398..5d5c2136 100644
--- a/OpenAL32/Include/alFilter.h
+++ b/OpenAL32/Include/alFilter.h
@@ -45,7 +45,7 @@ typedef struct ALfilterState {
ALfloat a1, a2; /* Transfer function coefficients "a" (a0 is pre-applied) */
ALfloat b0, b1, b2; /* Transfer function coefficients "b" */
- void (*process)(struct ALfilterState *self, ALfloat *restrict dst, const ALfloat *src, ALuint numsamples);
+ void (*process)(struct ALfilterState *self, ALfloat *restrict dst, const ALfloat *restrict src, ALuint numsamples);
} ALfilterState;
#define ALfilterState_process(a, ...) ((a)->process((a), __VA_ARGS__))
@@ -95,7 +95,7 @@ inline ALfloat ALfilterState_processSingle(ALfilterState *filter, ALfloat sample
return outsmp;
}
-void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *src, ALuint numsamples);
+void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALuint numsamples);
inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *src, ALuint numsamples)
{