summaryrefslogtreecommitdiff
path: root/src/cairo-bentley-ottmann.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-26 00:39:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-26 11:16:32 +0100
commit637659fb511824eb8ac31ef85db10406295734e6 (patch)
tree94188befc48bcd3c8c3630e9e23562f925466b3a /src/cairo-bentley-ottmann.c
parent3c6e4311fb3b9fe400555a8d97193fc87974899b (diff)
downloadcairo-637659fb511824eb8ac31ef85db10406295734e6.tar.gz
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>
Diffstat (limited to 'src/cairo-bentley-ottmann.c')
-rw-r--r--src/cairo-bentley-ottmann.c2
1 files changed, 1 insertions, 1 deletions
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)