summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-03-24 05:05:28 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2015-03-24 05:05:28 +0200
commitaaaa3a143848324c03b647155fe295de4a2d05aa (patch)
treee794dc861de18f7c4d7f2a5038ea00fe07d9113e
parentfcc93216f9b7179f4af13b29ddde848fcc94f19f (diff)
Evas.Rect: Use inline and nogil to optimize the intersection helper
-rw-r--r--efl/evas/efl.evas_rect.pxi2
1 files changed, 1 insertions, 1 deletions
diff --git a/efl/evas/efl.evas_rect.pxi b/efl/evas/efl.evas_rect.pxi
index 5d55f51..76dce95 100644
--- a/efl/evas/efl.evas_rect.pxi
+++ b/efl/evas/efl.evas_rect.pxi
@@ -19,7 +19,7 @@ from efl.utils.deprecated cimport DEPRECATED
19cimport cython 19cimport cython
20 20
21 21
22cdef int _spans_intersect(int c1, int l1, int c2, int l2): 22cdef inline int _spans_intersect(int c1, int l1, int c2, int l2) nogil:
23 return not (((c2 + l2) <= c1) or (c2 >= (c1 + l1))) 23 return not (((c2 + l2) <= c1) or (c2 >= (c1 + l1)))
24 24
25 25