From 6476f3277ae94d034f8bf21fba66473b71bcf3a2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 13 Apr 2017 11:48:43 -0700 Subject: Mark some pointers with restrict --- Alc/converter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Alc/converter.c') diff --git a/Alc/converter.c b/Alc/converter.c index 56af8ff0..99069d15 100644 --- a/Alc/converter.c +++ b/Alc/converter.c @@ -65,7 +65,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++) \ @@ -130,7 +131,8 @@ static inline ALfloat ALfloat_Sample(ALfloat val) { return val; } #define DECL_TEMPLATE(T) \ -static inline void Store_##T(T *dst, const ALfloat *src, ALint dststep, ALsizei samples)\ +static inline void Store_##T(T *restrict dst, const ALfloat *restrict src, \ + ALint dststep, ALsizei samples) \ { \ ALsizei i; \ for(i = 0;i < samples;i++) \ -- cgit v1.2.3