Author: vince
Date: Thu Feb 26 16:08:12 2009
New Revision: 6645
URL:
http://source.netsurf-browser.org?rev=6645&view=rev
Log:
use restrict keywords to improve rectangle clipping perfomance
Modified:
trunk/netsurf/framebuffer/fb_plotters.c
Modified: trunk/netsurf/framebuffer/fb_plotters.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/framebuffer/fb_plotters.c...
==============================================================================
--- trunk/netsurf/framebuffer/fb_plotters.c (original)
+++ trunk/netsurf/framebuffer/fb_plotters.c Thu Feb 26 16:08:12 2009
@@ -55,8 +55,8 @@
#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;