Lines Matching refs:heap_len
347 int heap_len; /* number of elements in the heap */
1812 * one less element. Updates heap and heap_len.
1817 s->heap[SMALLEST] = s->heap[s->heap_len--]; \
1842 while (j <= s->heap_len) {
1844 if (j < s->heap_len &&
2014 s->heap_len = 0, s->heap_max = HEAP_SIZE;
2018 s->heap[++(s->heap_len)] = max_code = n;
2030 while (s->heap_len < 2) {
2031 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0);
2039 /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
2042 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n);
2069 } while (s->heap_len >= 2);