Searched refs:heap_len (Results 1 – 2 of 2) sorted by relevance
353 s->heap[SMALLEST] = s->heap[s->heap_len--]; \379 while (j <= s->heap_len) { in pqdownheap()381 if (j < s->heap_len && in pqdownheap()554 s->heap_len = 0, s->heap_max = HEAP_SIZE; in build_tree()558 s->heap[++(s->heap_len)] = max_code = n; in build_tree()570 while (s->heap_len < 2) { in build_tree()571 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0); in build_tree()582 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n); in build_tree()609 } while (s->heap_len >= 2); in build_tree()
180 int heap_len; /* number of elements in the heap */ member