Lines Matching refs:array
41 * element of the heap array is not used; i.e. heap subscripts are 1-based,
60 ! heap->compare(heap->array[(i)], \
61 heap->array[heap_parent(i)]))
70 void **array;
97 heap->array = NULL;
114 if (heap->array != NULL)
115 isc_mem_put(heap->mctx, heap->array,
134 if (heap->array != NULL) {
135 memmove(new_array, heap->array, heap->size * sizeof(void *));
136 isc_mem_put(heap->mctx, heap->array,
140 heap->array = new_array;
150 i > 1 && heap->compare(elt, heap->array[p]) ;
152 heap->array[i] = heap->array[p];
154 (heap->index)(heap->array[i], i);
156 heap->array[i] = elt;
158 (heap->index)(heap->array[i], i);
171 if (j < size && heap->compare(heap->array[j+1],
172 heap->array[j]))
174 if (heap->compare(elt, heap->array[j]))
176 heap->array[i] = heap->array[j];
178 (heap->index)(heap->array[i], i);
181 heap->array[i] = elt;
183 (heap->index)(heap->array[i], i);
214 heap->array[heap->last] = NULL;
217 elt = heap->array[heap->last];
218 heap->array[heap->last] = NULL;
221 less = heap->compare(elt, heap->array[index]);
222 heap->array[index] = elt;
224 float_up(heap, index, heap->array[index]);
226 sink_down(heap, index, heap->array[index]);
235 float_up(heap, index, heap->array[index]);
243 sink_down(heap, index, heap->array[index]);
252 return (heap->array[index]);
264 (action)(heap->array[i], uap);