Evas.Rect: Use inline and nogil to optimize the intersection helper

This commit is contained in:
Kai Huuhko 2015-03-24 05:05:28 +02:00
parent fcc93216f9
commit aaaa3a1438
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ from efl.utils.deprecated cimport DEPRECATED
cimport cython
cdef int _spans_intersect(int c1, int l1, int c2, int l2):
cdef inline int _spans_intersect(int c1, int l1, int c2, int l2) nogil:
return not (((c2 + l2) <= c1) or (c2 >= (c1 + l1)))