diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-03 18:48:46 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-03 18:48:46 +0100 |
commit | ea00b378744f98e38b0c00e97a5c78d9d76d6dd3 (patch) | |
tree | 7e09d5a276753fa9acea863e97d2e06406c82e31 /frontends/amiga/plotters.c | |
parent | 61979923c146b4456d24e794a44c08adc334cff6 (diff) | |
download | netsurf-ea00b378744f98e38b0c00e97a5c78d9d76d6dd3.tar.gz netsurf-ea00b378744f98e38b0c00e97a5c78d9d76d6dd3.tar.bz2 |
Attempt to help gcc out a little
Diffstat (limited to 'frontends/amiga/plotters.c')
-rw-r--r-- | frontends/amiga/plotters.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/amiga/plotters.c b/frontends/amiga/plotters.c index 7e19db7a5..2ad7f2b54 100644 --- a/frontends/amiga/plotters.c +++ b/frontends/amiga/plotters.c @@ -797,8 +797,9 @@ HOOKF(void, ami_bitmap_tile_hook, struct RastPort *, rp, struct BackFillMessage } } -static void ami_bezier(struct bez_point *a, struct bez_point *b, struct bez_point *c, - struct bez_point *d, double t, struct bez_point *p) { +static void ami_bezier(struct bez_point *restrict a, struct bez_point *restrict b, + struct bez_point *restrict c, struct bez_point *restrict d, + double t, struct bez_point *restrict p) { p->x = pow((1 - t), 3) * a->x + 3 * t * pow((1 -t), 2) * b->x + 3 * (1-t) * pow(t, 2)* c->x + pow (t, 3)* d->x; p->y = pow((1 - t), 3) * a->y + 3 * t * pow((1 -t), 2) * b->y + 3 * (1-t) * pow(t, 2)* c->y + pow (t, 3)* d->y; } |