Lines Matching refs:heap_len
432 * one less element. Updates heap and heap_len.
437 s->heap[SMALLEST] = s->heap[s->heap_len--]; \
462 while (j <= s->heap_len) {
464 if (j < s->heap_len &&
634 s->heap_len = 0, s->heap_max = HEAP_SIZE;
638 s->heap[++(s->heap_len)] = max_code = n;
650 while (s->heap_len < 2) {
651 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0);
659 /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
662 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n);
690 } while (s->heap_len >= 2);