Lines Matching defs:array
32 * element of the heap array is not used; i.e. heap subscripts are 1-based,
51 ! heap->compare(heap->array[(i)], \
52 heap->array[heap_parent(i)]))
61 void **array;
100 heap->array = NULL;
117 if (heap->array != NULL)
118 isc_mem_put(heap->mctx, heap->array,
137 if (heap->array != NULL) {
138 memmove(new_array, heap->array, heap->size * sizeof(void *));
139 isc_mem_put(heap->mctx, heap->array,
143 heap->array = new_array;
153 i > 1 && heap->compare(elt, heap->array[p]) ;
155 heap->array[i] = heap->array[p];
157 (heap->index)(heap->array[i], i);
159 heap->array[i] = elt;
161 (heap->index)(heap->array[i], i);
175 if (j < size && heap->compare(heap->array[j+1],
176 heap->array[j]))
178 if (heap->compare(elt, heap->array[j]))
180 heap->array[i] = heap->array[j];
182 (heap->index)(heap->array[i], i);
185 heap->array[i] = elt;
187 (heap->index)(heap->array[i], i);
221 (heap->index)(heap->array[idx], 0);
223 heap->array[heap->last] = NULL;
227 elt = heap->array[heap->last];
228 heap->array[heap->last] = NULL;
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]);
245 float_up(heap, idx, heap->array[idx]);
253 sink_down(heap, idx, heap->array[idx]);
263 return (heap->array[idx]);
275 (action)(heap->array[i], uap);