diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-26 22:08:12 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-26 22:08:12 +0000 |
commit | c6a70c2052579f318d7bb66cea5655d882825c03 (patch) | |
tree | 6601a5c3100dc60f80d3e6d769bf25bae610ced3 /framebuffer/fb_plotters.c | |
parent | c85268379ba1d4fc3a69c6ce8b28c69314ebd435 (diff) | |
download | netsurf-c6a70c2052579f318d7bb66cea5655d882825c03.tar.gz netsurf-c6a70c2052579f318d7bb66cea5655d882825c03.tar.bz2 |
use restrict keywords to improve rectangle clipping perfomance
svn path=/trunk/netsurf/; revision=6645
Diffstat (limited to 'framebuffer/fb_plotters.c')
-rw-r--r-- | framebuffer/fb_plotters.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |