Lines Matching refs:endpos
77 Py_ssize_t startpos, endpos, childpos, rightpos, limit; in _siftup() local
82 endpos = PyList_GET_SIZE(heap); in _siftup()
84 if (pos >= endpos) { in _siftup()
90 limit = endpos / 2; /* smallest pos that has no child */ in _siftup()
95 if (rightpos < endpos) { in _siftup()
103 if (endpos != PyList_GET_SIZE(heap)) { in _siftup()
418 Py_ssize_t startpos, endpos, childpos, rightpos, limit; in _siftupmax() local
423 endpos = PyList_GET_SIZE(heap); in _siftupmax()
425 if (pos >= endpos) { in _siftupmax()
433 limit = endpos / 2; /* smallest pos that has no child */ in _siftupmax()
438 if (rightpos < endpos) { in _siftupmax()