Lines Matching refs:hi
19 internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) in internal_bisect_right() argument
29 if (hi == -1) { in internal_bisect_right()
30 hi = PySequence_Size(list); in internal_bisect_right()
31 if (hi < 0) in internal_bisect_right()
34 while (lo < hi) { in internal_bisect_right()
38 mid = ((size_t)lo + hi) / 2; in internal_bisect_right()
47 hi = mid; in internal_bisect_right()
74 Py_ssize_t lo, Py_ssize_t hi) in _bisect_bisect_right_impl() argument
77 return internal_bisect_right(a, x, lo, hi); in _bisect_bisect_right_impl()
98 Py_ssize_t lo, Py_ssize_t hi) in _bisect_insort_right_impl() argument
102 Py_ssize_t index = internal_bisect_right(a, x, lo, hi); in _bisect_insort_right_impl()
120 internal_bisect_left(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) in internal_bisect_left() argument
130 if (hi == -1) { in internal_bisect_left()
131 hi = PySequence_Size(list); in internal_bisect_left()
132 if (hi < 0) in internal_bisect_left()
135 while (lo < hi) { in internal_bisect_left()
139 mid = ((size_t)lo + hi) / 2; in internal_bisect_left()
150 hi = mid; in internal_bisect_left()
176 Py_ssize_t lo, Py_ssize_t hi) in _bisect_bisect_left_impl() argument
179 return internal_bisect_left(a, x, lo, hi); in _bisect_bisect_left_impl()
201 Py_ssize_t lo, Py_ssize_t hi) in _bisect_insort_left_impl() argument
205 Py_ssize_t index = internal_bisect_left(a, x, lo, hi); in _bisect_insort_left_impl()