Searched refs:min_child (Results 1 – 1 of 1) sorted by relevance
136 unsigned min_child = 2 * (hole_index + 1); in min_heap_shift_down_() local137 while(min_child <= s->n) in min_heap_shift_down_()139 … min_child -= min_child == s->n || min_heap_elem_greater(s->p[min_child], s->p[min_child - 1]); in min_heap_shift_down_()140 if(!(min_heap_elem_greater(e, s->p[min_child]))) in min_heap_shift_down_()142 (s->p[hole_index] = s->p[min_child])->min_heap_idx = hole_index; in min_heap_shift_down_()143 hole_index = min_child; in min_heap_shift_down_()144 min_child = 2 * (hole_index + 1); in min_heap_shift_down_()