Lines Matching refs:htop
53 size_t htop; /* Highest used heap element */ member
178 if (pq->htop > p + 1) { in pqueue_move_up()
184 while (pq->htop > p && pq->compare(h[p].data, h[n].data) < 0) { in pqueue_move_up()
189 if (pq->htop > p + 1) { in pqueue_move_up()
204 n = pq->htop++; in ossl_pqueue_push()
223 if (pq->htop > 0) { in ossl_pqueue_peek()
235 if (pq == NULL || pq->htop == 0) in ossl_pqueue_pop()
242 if (--pq->htop != 0) { in ossl_pqueue_pop()
243 pqueue_move_elem(pq, pq->htop, 0); in ossl_pqueue_pop()
259 if (pq == NULL || elem >= pq->hmax || pq->htop == 0) in ossl_pqueue_remove()
267 if (n == pq->htop - 1) { in ossl_pqueue_remove()
273 return pq->heap[--pq->htop].data; in ossl_pqueue_remove()
304 if (pq->htop + n < cur_max) in ossl_pqueue_reserve()
340 pq->htop = 0; in ossl_pqueue_new()
366 for (i = 0; i < pq->htop; i++) in ossl_pqueue_pop_free()
374 return pq != NULL ? pq->htop : 0; in ossl_pqueue_num()