use restrict keywords to improve rectangle clipping perfomance

svn path=/trunk/netsurf/; revision=6645
This commit is contained in:
Vincent Sanders 2009-02-26 22:08:12 +00:00
parent c85268379b
commit c6a70c2052
1 changed files with 2 additions and 2 deletions

View File

@ -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;