Searched refs:heap_len (Results 1 – 4 of 4) sorted by relevance
299 s->heap[SMALLEST] = s->heap[s->heap_len--]; \325 while (j <= s->heap_len) { in pqdownheap()327 if (j < s->heap_len && in pqdownheap()500 s->heap_len = 0, s->heap_max = HEAP_SIZE; in build_tree()504 s->heap[++(s->heap_len)] = max_code = n; in build_tree()516 while (s->heap_len < 2) { in build_tree()517 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0); in build_tree()528 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n); in build_tree()555 } while (s->heap_len >= 2); in build_tree()
182 int heap_len; /* number of elements in the heap */ member
441 s->heap[SMALLEST] = s->heap[s->heap_len--]; \466 while (j <= s->heap_len) {468 if (j < s->heap_len &&638 s->heap_len = 0, s->heap_max = HEAP_SIZE;642 s->heap[++(s->heap_len)] = max_code = n;654 while (s->heap_len < 2) {655 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0);666 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n);694 } while (s->heap_len >= 2);
204 int heap_len; /* number of elements in the heap */ member