| 354 | } |
| 355 | |
| 356 | static 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 | |
| 368 | static int iq_bubble_down(h2_proxy_iqueue *q, int i, int bottom, |
| 369 | h2_proxy_iq_cmp *cmp, void *ctx) |
no test coverage detected