From a931314d3f455f4fda0666d91c39fc12f842e521 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 10 Aug 2017 00:14:55 -0700 Subject: Add restrict to a few more parameters --- Alc/mixer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/mixer.c b/Alc/mixer.c index b5c4605b..5105a2d7 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -203,7 +203,8 @@ static inline ALfloat Sample_ALfloat(ALfloat val) { return val; } #define DECL_TEMPLATE(T) \ -static inline void Load_##T(ALfloat *dst, const T *src, ALint srcstep, ALsizei samples)\ +static inline void Load_##T(ALfloat *restrict dst, const T *restrict src, \ + ALint srcstep, ALsizei samples) \ { \ ALsizei i; \ for(i = 0;i < samples;i++) \ @@ -216,7 +217,8 @@ DECL_TEMPLATE(ALfloat) #undef DECL_TEMPLATE -static void LoadSamples(ALfloat *dst, const ALvoid *src, ALint srcstep, enum FmtType srctype, ALsizei samples) +static void LoadSamples(ALfloat *restrict dst, const ALvoid *restrict src, ALint srcstep, + enum FmtType srctype, ALsizei samples) { switch(srctype) { -- cgit v1.2.3