Lines Matching defs:heap_len
450 int heap_len; /* number of elements in the heap */
2188 * one less element. Updates heap and heap_len.
2193 s->heap[SMALLEST] = s->heap[s->heap_len--]; \
2218 while (j <= s->heap_len) {
2220 if (j < s->heap_len &&
2390 s->heap_len = 0, s->heap_max = HEAP_SIZE;
2394 s->heap[++(s->heap_len)] = max_code = n;
2406 while (s->heap_len < 2) {
2407 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0);
2415 /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
2418 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n);
2445 } while (s->heap_len >= 2);