MCPcopy Create free account
hub / github.com/apache/httpd / iq_bubble_up

Function iq_bubble_up

modules/http2/h2_proxy_util.c:356–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356static int iq_bubble_up(h2_proxy_iqueue *q, int i, int top,
357 h2_proxy_iq_cmp *cmp, void *ctx)
358{
359 int prev;
360 while (((prev = (q->nalloc + i - 1) % q->nalloc), i != top)
361 && (*cmp)(q->elts[i], q->elts[prev], ctx) < 0) {
362 iq_swap(q, prev, i);
363 i = prev;
364 }
365 return i;
366}
367
368static int iq_bubble_down(h2_proxy_iqueue *q, int i, int bottom,
369 h2_proxy_iq_cmp *cmp, void *ctx)

Callers 2

h2_proxy_iq_addFunction · 0.70
h2_proxy_iq_sortFunction · 0.70

Calls 1

iq_swapFunction · 0.70

Tested by

no test coverage detected