Home | History | Annotate | Download | only in input

Lines Matching refs:parentIndex

5548         for (uint32_t parentIndex = startIndex; ;) {
5549 uint32_t childIndex = parentIndex * 2 + 1;
5559 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5563 swap(heap[parentIndex], heap[childIndex]);
5564 parentIndex = childIndex;
5595 for (uint32_t parentIndex = 0; ;) {
5596 uint32_t childIndex = parentIndex * 2 + 1;
5606 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5610 swap(heap[parentIndex], heap[childIndex]);
5611 parentIndex = childIndex;