Lines Matching refs:endpos
66 Py_ssize_t startpos, endpos, childpos, limit; in siftup() local
71 endpos = PyList_GET_SIZE(heap); in siftup()
73 if (pos >= endpos) { in siftup()
80 limit = endpos >> 1; /* smallest pos that has no child */ in siftup()
84 if (childpos + 1 < endpos) { in siftup()
96 if (endpos != PyList_GET_SIZE(heap)) { in siftup()
460 Py_ssize_t startpos, endpos, childpos, limit; in siftup_max() local
465 endpos = PyList_GET_SIZE(heap); in siftup_max()
467 if (pos >= endpos) { in siftup_max()
474 limit = endpos >> 1; /* smallest pos that has no child */ in siftup_max()
478 if (childpos + 1 < endpos) { in siftup_max()
490 if (endpos != PyList_GET_SIZE(heap)) { in siftup_max()