Lines Matching refs:newitem
208 newitem = heap[pos]
210 # newitem fits.
214 if newitem < parent:
219 heap[pos] = newitem
226 # We *could* break out of the loop as soon as we find a pos where newitem <=
263 newitem = heap[pos]
275 # The leaf at pos is empty now. Put newitem there, and bubble it up
277 heap[pos] = newitem
282 newitem = heap[pos]
284 # newitem fits.
288 if parent < newitem:
293 heap[pos] = newitem
299 newitem = heap[pos]
311 # The leaf at pos is empty now. Put newitem there, and bubble it up
313 heap[pos] = newitem