Home
last modified time | relevance | path

Searched refs:rightpos (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/
Dheapq.py303 rightpos = childpos + 1
304 if rightpos < endpos and not cmp_lt(heap[childpos], heap[rightpos]):
305 childpos = rightpos
339 rightpos = childpos + 1
340 if rightpos < endpos and not cmp_lt(heap[rightpos], heap[childpos]):
341 childpos = rightpos
/external/python/cpython2/Modules/
D_heapqmodule.c77 Py_ssize_t startpos, endpos, childpos, rightpos, limit; in _siftup() local
94 rightpos = childpos + 1; in _siftup()
95 if (rightpos < endpos) { in _siftup()
98 PyList_GET_ITEM(heap, rightpos)); in _siftup()
102 childpos = rightpos; in _siftup()
418 Py_ssize_t startpos, endpos, childpos, rightpos, limit; in _siftupmax() local
437 rightpos = childpos + 1; in _siftupmax()
438 if (rightpos < endpos) { in _siftupmax()
440 PyList_GET_ITEM(heap, rightpos), in _siftupmax()
447 childpos = rightpos; in _siftupmax()