aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-13 11:48:43 -0700
committerChris Robinson <[email protected]>2017-04-13 11:48:43 -0700
commit6476f3277ae94d034f8bf21fba66473b71bcf3a2 (patch)
treeea91b5bf9166d653ccc9f882770c061f0e1a3f3f
parent24c172bb96b8a1379e9d37c8c33dbbb7c94f8e61 (diff)
Mark some pointers with restrict
-rw-r--r--Alc/converter.c6
1 files changed, 4 insertions, 2 deletions
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++) \