Lines Matching refs:n
228 int n; /* iterates over tree elements */ in tr_static_init() local
242 for (n = 0; n < (1<<extra_lbits[code]); n++) { in tr_static_init()
257 for (n = 0; n < (1<<extra_dbits[code]); n++) { in tr_static_init()
265 for (n = 0; n < (1<<(extra_dbits[code]-7)); n++) { in tr_static_init()
273 n = 0; in tr_static_init()
274 while (n <= 143) static_ltree[n++].Len = 8, bl_count[8]++; in tr_static_init()
275 while (n <= 255) static_ltree[n++].Len = 9, bl_count[9]++; in tr_static_init()
276 while (n <= 279) static_ltree[n++].Len = 7, bl_count[7]++; in tr_static_init()
277 while (n <= 287) static_ltree[n++].Len = 8, bl_count[8]++; in tr_static_init()
285 for (n = 0; n < D_CODES; n++) { in tr_static_init()
286 static_dtree[n].Len = 5; in tr_static_init()
287 static_dtree[n].Code = bitrev32((u32)n) >> (32 - 5); in tr_static_init()
330 int n; /* iterates over tree elements */ in init_block() local
333 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0; in init_block()
334 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0; in init_block()
335 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0; in init_block()
361 #define smaller(tree, n, m, depth) \ argument
362 (tree[n].Freq < tree[m].Freq || \
363 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
419 int n, m; /* iterate over the tree elements */ in gen_bitlen() local
433 n = s->heap[h]; in gen_bitlen()
434 bits = tree[tree[n].Dad].Len + 1; in gen_bitlen()
436 tree[n].Len = (ush)bits; in gen_bitlen()
439 if (n > max_code) continue; /* not a leaf node */ in gen_bitlen()
443 if (n >= base) xbits = extra[n-base]; in gen_bitlen()
444 f = tree[n].Freq; in gen_bitlen()
446 if (stree) s->static_len += (ulg)f * (stree[n].Len + xbits); in gen_bitlen()
472 n = s->bl_count[bits]; in gen_bitlen()
473 while (n != 0) { in gen_bitlen()
482 n--; in gen_bitlen()
504 int n; /* code index */ in gen_codes() local
519 for (n = 0; n <= max_code; n++) { in gen_codes()
520 int len = tree[n].Len; in gen_codes()
523 tree[n].Code = bitrev32((u32)(next_code[len]++)) >> (32 - len); in gen_codes()
526 n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1)); in gen_codes()
546 int n, m; /* iterate over heap elements */ in build_tree() local
556 for (n = 0; n < elems; n++) { in build_tree()
557 if (tree[n].Freq != 0) { in build_tree()
558 s->heap[++(s->heap_len)] = max_code = n; in build_tree()
559 s->depth[n] = 0; in build_tree()
561 tree[n].Len = 0; in build_tree()
582 for (n = s->heap_len/2; n >= 1; n--) pqdownheap(s, tree, n); in build_tree()
589 pqremove(s, tree, n); /* n = node of least frequency */ in build_tree()
592 s->heap[--(s->heap_max)] = n; /* keep the nodes sorted by frequency */ in build_tree()
596 tree[node].Freq = tree[n].Freq + tree[m].Freq; in build_tree()
597 s->depth[node] = (uch) (max(s->depth[n], s->depth[m]) + 1); in build_tree()
598 tree[n].Dad = tree[m].Dad = (ush)node; in build_tree()
602 node, tree[node].Freq, n, tree[n].Freq, m, tree[m].Freq); in build_tree()
632 int n; /* iterates over all tree elements */ in scan_tree() local
643 for (n = 0; n <= max_code; n++) { in scan_tree()
644 curlen = nextlen; nextlen = tree[n+1].Len; in scan_tree()
678 int n; /* iterates over all tree elements */ in send_tree() local
689 for (n = 0; n <= max_code; n++) { in send_tree()
690 curlen = nextlen; nextlen = tree[n+1].Len; in send_tree()
1076 int n = 0; local
1079 while (n < 7) bin_freq += s->dyn_ltree[n++].Freq;
1080 while (n < 128) ascii_freq += s->dyn_ltree[n++].Freq;
1081 while (n < LITERALS) bin_freq += s->dyn_ltree[n++].Freq;