bentley-ottmann: hint that the insertion compare function should be inlined

Albeit it too large for gcc to automatically inline, it is only used
from within a single function. Hopefully gcc can optimise better with
the hint.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-26 00:39:43 +01:00
parent 3c6e4311fb
commit 637659fb51

View file

@ -561,7 +561,7 @@ _line_equal (const cairo_line_t *a, const cairo_line_t *b)
a->p2.x == b->p2.x && a->p2.y == b->p2.y;
}
static int
static inline int
_cairo_bo_sweep_line_compare_edges (const cairo_bo_sweep_line_t *sweep_line,
const cairo_bo_edge_t *a,
const cairo_bo_edge_t *b)