Searched refs:heap_len (Results 1 – 2 of 2) sorted by relevance
354 s->heap[SMALLEST] = s->heap[s->heap_len--]; \379 while (j <= s->heap_len) {381 if (j < s->heap_len &&551 s->heap_len = 0, s->heap_max = HEAP_SIZE;555 s->heap[++(s->heap_len)] = max_code = n;567 while (s->heap_len < 2) {568 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0);579 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n);606 } while (s->heap_len >= 2);
181 int heap_len; /* number of elements in the heap */ member