Lines Matching defs:idx
80 isc_heapindex_t idx, unsigned int size_increment,
102 heap->index = idx;
212 isc_heap_delete(isc_heap_t *heap, unsigned int idx) {
217 REQUIRE(idx >= 1 && idx <= heap->last);
221 (heap->index)(heap->array[idx], 0);
222 if (idx == heap->last) {
231 less = heap->compare(elt, heap->array[idx]);
232 heap->array[idx] = elt;
234 float_up(heap, idx, heap->array[idx]);
236 sink_down(heap, idx, heap->array[idx]);
241 isc_heap_increased(isc_heap_t *heap, unsigned int idx) {
243 REQUIRE(idx >= 1 && idx <= heap->last);
245 float_up(heap, idx, heap->array[idx]);
249 isc_heap_decreased(isc_heap_t *heap, unsigned int idx) {
251 REQUIRE(idx >= 1 && idx <= heap->last);
253 sink_down(heap, idx, heap->array[idx]);
257 isc_heap_element(isc_heap_t *heap, unsigned int idx) {
259 REQUIRE(idx >= 1);
262 if (idx <= heap->last)
263 return (heap->array[idx]);