Lines Matching refs:parent_index
7847 int parent_index = i; in Sort() local
7849 while (parent_index <= max_parent_index) { in Sort()
7850 int child_index = 2 * parent_index + 1; in Sort()
7860 SwapSortedKeys(parent_index, child_index); in Sort()
7862 parent_index = child_index; // parent_hash remains correct. in Sort()
7871 int parent_index = 0; in Sort() local
7872 const uint32_t parent_hash = GetSortedKey(parent_index)->Hash(); in Sort()
7874 while (parent_index <= max_parent_index) { in Sort()
7875 int child_index = parent_index * 2 + 1; in Sort()
7885 SwapSortedKeys(parent_index, child_index); in Sort()
7886 parent_index = child_index; in Sort()
13275 int parent_index = ((child_index + 1) >> 1) - 1; in HeapSortPairs() local
13276 uint32_t parent_value = NumberToUint32(numbers->get(parent_index)); in HeapSortPairs()
13279 content->SwapPairs(numbers, parent_index, child_index); in HeapSortPairs()
13283 child_index = parent_index; in HeapSortPairs()
13292 int parent_index = 0; in HeapSortPairs() local
13294 int child_index = ((parent_index + 1) << 1) - 1; in HeapSortPairs()
13298 uint32_t parent_value = NumberToUint32(numbers->get(parent_index)); in HeapSortPairs()
13301 content->SwapPairs(numbers, parent_index, child_index); in HeapSortPairs()
13302 parent_index = child_index; in HeapSortPairs()
13305 content->SwapPairs(numbers, parent_index, child_index + 1); in HeapSortPairs()
13306 parent_index = child_index + 1; in HeapSortPairs()