Lines Matching refs:elt
106 float_up(heap_context ctx, int i, void *elt) {
110 i > 1 && ctx->higher_priority(elt, ctx->heap[p]);
116 ctx->heap[i] = elt;
122 sink_down(heap_context ctx, int i, void *elt) {
133 if (ctx->higher_priority(elt, ctx->heap[j]))
140 ctx->heap[i] = elt;
146 heap_insert(heap_context ctx, void *elt) {
149 if (ctx == NULL || elt == NULL) {
158 float_up(ctx, i, elt);
165 void *elt;
176 elt = ctx->heap[ctx->heap_size--];
177 less = ctx->higher_priority(elt, ctx->heap[i]);
178 ctx->heap[i] = elt;