Lines Matching refs:childIndex
5817 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5818 if (childIndex >= heapSize) { in assignPointerIds()
5822 if (childIndex + 1 < heapSize in assignPointerIds()
5823 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
5824 childIndex += 1; in assignPointerIds()
5827 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
5831 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
5832 parentIndex = childIndex; in assignPointerIds()
5864 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5865 if (childIndex >= heapSize) { in assignPointerIds()
5869 if (childIndex + 1 < heapSize in assignPointerIds()
5870 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
5871 childIndex += 1; in assignPointerIds()
5874 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
5878 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
5879 parentIndex = childIndex; in assignPointerIds()