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

Function iq_bubble_down

modules/http2/h2_util.c:499–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499static int iq_bubble_down(h2_iqueue *q, int i, int bottom,
500 h2_iq_cmp *cmp, void *ctx)
501{
502 int next;
503 while (((next = (q->nalloc + i + 1) % q->nalloc), i != bottom)
504 && (*cmp)(q->elts[i], q->elts[next], ctx) > 0) {
505 iq_swap(q, next, i);
506 i = next;
507 }
508 return i;
509}
510
511int h2_iq_contains(h2_iqueue *q, int sid)
512{

Callers 1

h2_iq_sortFunction · 0.70

Calls 1

iq_swapFunction · 0.70

Tested by

no test coverage detected