From c6a70c2052579f318d7bb66cea5655d882825c03 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 26 Feb 2009 22:08:12 +0000 Subject: use restrict keywords to improve rectangle clipping perfomance svn path=/trunk/netsurf/; revision=6645 --- framebuffer/fb_plotters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framebuffer') diff --git a/framebuffer/fb_plotters.c b/framebuffer/fb_plotters.c index 773cc640a..0ae253f2c 100644 --- a/framebuffer/fb_plotters.c +++ b/framebuffer/fb_plotters.c @@ -55,8 +55,8 @@ enum { #define SWAP(a, b) do { int t; t=(a); (a)=(b); (b)=t; } while(0) /* clip a rectangle to another rectangle */ -bool fb_plotters_clip_rect(const bbox_t *clip, - int *x0, int *y0, int *x1, int *y1) +bool fb_plotters_clip_rect(const bbox_t * restrict clip, + int * restrict x0, int * restrict y0, int * restrict x1, int * restrict y1) { char region1; char region2; -- cgit v1.2.3