Home | History | Annotate | Download | only in src

Lines Matching refs:child_index

10086       int child_index = 2 * parent_index + 1;
10087 uint32_t child_hash = GetSortedKey(child_index)->Hash();
10088 if (child_index + 1 < len) {
10089 uint32_t right_child_hash = GetSortedKey(child_index + 1)->Hash();
10091 child_index++;
10096 SwapSortedKeys(parent_index, child_index);
10097 // Now element at child_index could be < its children.
10098 parent_index = child_index; // parent_hash remains correct.
10111 int child_index = parent_index * 2 + 1;
10112 uint32_t child_hash = GetSortedKey(child_index)->Hash();
10113 if (child_index + 1 < i) {
10114 uint32_t right_child_hash = GetSortedKey(child_index + 1)->Hash();
10116 child_index++;
10121 SwapSortedKeys(parent_index, child_index);
10122 parent_index = child_index;