From 9967d4eadded7cfc0c8424d6ffd756b85ba6f4ef Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 6 May 2011 00:33:58 -0700 Subject: [PATCH] Mark a couple more pointers as restricted --- Alc/ALu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index b4a23f98..5657da22 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -910,9 +910,10 @@ static const Channel X71Chans[] = { FRONT_LEFT, FRONT_RIGHT, SIDE_LEFT, SIDE_RIGHT }; #define DECL_TEMPLATE(T, chans,N, func) \ -static void Write_##T##_##chans(ALCdevice *device, T *buffer, ALuint SamplesToDo)\ +static void Write_##T##_##chans(ALCdevice *device, T *RESTRICT buffer, \ + ALuint SamplesToDo) \ { \ - ALfloat (*DryBuffer)[MAXCHANNELS] = device->DryBuffer; \ + ALfloat (*RESTRICT DryBuffer)[MAXCHANNELS] = device->DryBuffer; \ const ALuint *ChanMap = device->DevChannels; \ ALuint i, j; \ \