Searched refs:cpos (Results 1 – 1 of 1) sorted by relevance
94 int val1, val2, val3, cpos; in adjust_lpt_heap() local124 cpos = hpos * 2 + 1; in adjust_lpt_heap()125 if (cpos >= heap->cnt) in adjust_lpt_heap()127 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap()130 if (cpos + 1 < heap->cnt) { in adjust_lpt_heap()131 val3 = get_heap_comp_val(heap->arr[cpos + 1], in adjust_lpt_heap()134 cpos += 1; /* Right child is bigger */ in adjust_lpt_heap()136 heap->arr[cpos]->hpos = hpos; in adjust_lpt_heap()137 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap()138 heap->arr[cpos] = lprops; in adjust_lpt_heap()[all …]