Lines Matching refs:node
427 /* Index within the heap array of least frequent node in the Huffman tree */
450 * Restore the heap property by moving down the tree starting at node k,
451 * exchanging a node with the smallest of its two sons if necessary, stopping
458 int k; /* node to move down */
521 if (n > max_code) continue; /* not a leaf node */
628 int node; /* new node being created */
651 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0);
652 tree[node].Freq = 1;
653 s->depth[node] = 0;
654 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
655 /* node is 0 or 1 so it does not have extra bits */
667 node = elems; /* next internal node of the tree */
669 pqremove(s, tree, n); /* n = node of least frequency */
670 m = s->heap[SMALLEST]; /* m = node of next least frequency */
675 /* Create a new node father of n and m */
676 tree[node].Freq = tree[n].Freq + tree[m].Freq;
677 s->depth[node] = (uch)((s->depth[n] >= s->depth[m] ?
679 tree[n].Dad = tree[m].Dad = (ush)node;
683 node, tree[node].Freq, n, tree[n].Freq, m, tree[m].Freq);
686 /* and insert the new node in the heap */
687 s->heap[SMALLEST] = node++;