Home | History | Annotate | Download | only in input

Lines Matching refs:parentIndex

5756         for (uint32_t parentIndex = startIndex; ;) {
5757 uint32_t childIndex = parentIndex * 2 + 1;
5767 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5771 swap(heap[parentIndex], heap[childIndex]);
5772 parentIndex = childIndex;
5803 for (uint32_t parentIndex = 0; ;) {
5804 uint32_t childIndex = parentIndex * 2 + 1;
5814 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5818 swap(heap[parentIndex], heap[childIndex]);
5819 parentIndex = childIndex;