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

Function iq_bubble_down

modules/http2/h2_proxy_util.c:368–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static int iq_bubble_down(h2_proxy_iqueue *q, int i, int bottom,
369 h2_proxy_iq_cmp *cmp, void *ctx)
370{
371 int next;
372 while (((next = (q->nalloc + i + 1) % q->nalloc), i != bottom)
373 && (*cmp)(q->elts[i], q->elts[next], ctx) > 0) {
374 iq_swap(q, next, i);
375 i = next;
376 }
377 return i;
378}
379
380/*******************************************************************************
381 * h2_proxy_ngheader

Callers 1

h2_proxy_iq_sortFunction · 0.70

Calls 1

iq_swapFunction · 0.70

Tested by

no test coverage detected