From 637659fb511824eb8ac31ef85db10406295734e6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 26 Aug 2012 00:39:43 +0100 Subject: [PATCH] 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 --- src/cairo-bentley-ottmann.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-bentley-ottmann.c b/src/cairo-bentley-ottmann.c index 7820dad35..4f5df2d21 100644 --- a/src/cairo-bentley-ottmann.c +++ b/src/cairo-bentley-ottmann.c @@ -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)