Lines Matching refs:endpos
55 Py_ssize_t startpos, endpos, childpos, limit; in siftup() local
60 endpos = PyList_GET_SIZE(heap); in siftup()
62 if (pos >= endpos) { in siftup()
69 limit = endpos >> 1; /* smallest pos that has no child */ in siftup()
73 if (childpos + 1 < endpos) { in siftup()
82 if (endpos != PyList_GET_SIZE(heap)) { in siftup()
409 Py_ssize_t startpos, endpos, childpos, limit; in siftup_max() local
414 endpos = PyList_GET_SIZE(heap); in siftup_max()
416 if (pos >= endpos) { in siftup_max()
423 limit = endpos >> 1; /* smallest pos that has no child */ in siftup_max()
427 if (childpos + 1 < endpos) { in siftup_max()
436 if (endpos != PyList_GET_SIZE(heap)) { in siftup_max()