diff options
author | Chris Robinson <[email protected]> | 2017-08-10 00:14:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-10 00:14:55 -0700 |
commit | a931314d3f455f4fda0666d91c39fc12f842e521 (patch) | |
tree | 145d17c96bf6e0a197885e9a6e15c221d2ee2361 /Alc | |
parent | 2987c876453a4db1d08a473aee06fa887cccf11e (diff) |
Add restrict to a few more parameters
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mixer.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) { |