| 366 | } |
| 367 | |
| 368 | static 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 |
no test coverage detected