From 1ef916a54b56fa07821f4a72699ada55894fdca6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 1 Apr 2017 01:08:18 -0700 Subject: Make a pointer restrict and assume aligned --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 710b64be..2cac3ce0 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1341,7 +1341,7 @@ static void Write_##T(const ALfloatBUFFERSIZE *InBuffer, ALvoid *OutBuffer, \ ALsizei i, j; \ for(j = 0;j < numchans;j++) \ { \ - const ALfloat *in = InBuffer[j]; \ + const ALfloat *restrict in = ASSUME_ALIGNED(InBuffer[j], 16); \ T *restrict out = (T*)OutBuffer + j; \ const ALfloat gain = distcomp[j].Gain; \ const ALsizei base = distcomp[j].Length; \ -- cgit v1.2.3