Lines Matching refs:childIndex
5637 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5638 if (childIndex >= heapSize) { in assignPointerIds()
5642 if (childIndex + 1 < heapSize in assignPointerIds()
5643 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
5644 childIndex += 1; in assignPointerIds()
5647 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
5651 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
5652 parentIndex = childIndex; in assignPointerIds()
5684 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5685 if (childIndex >= heapSize) { in assignPointerIds()
5689 if (childIndex + 1 < heapSize in assignPointerIds()
5690 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
5691 childIndex += 1; in assignPointerIds()
5694 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
5698 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
5699 parentIndex = childIndex; in assignPointerIds()