Lines Matching refs:n_bits
133 static int n_bits; /* number of bits/code */ variable
138 #define MAXCODE(n_bits) ((1 << (n_bits)) - 1) argument
933 (void) fprintf(stderr, "n_bits = %d\n", n_bits); in cinterr()
1004 maxcode = MAXCODE(n_bits = INIT_BITS); in compress()
1121 free_ent - 1, n_bits); in compress()
1160 int r_off = offset, bits = n_bits; in output()
1198 offset += n_bits; in output()
1199 if (offset == (n_bits << 3)) { in output()
1201 bits = n_bits; in output()
1224 if (fwrite(buf, 1, n_bits, outp) != n_bits) { in output()
1227 bytes_out += n_bits; in output()
1232 maxcode = MAXCODE(n_bits = INIT_BITS); in output()
1235 n_bits++; in output()
1236 if (n_bits == maxbits) in output()
1239 maxcode = MAXCODE(n_bits); in output()
1244 "\nChange to %d bits\n", n_bits); in output()
1289 maxcode = MAXCODE(n_bits = INIT_BITS); in decompress()
1400 n_bits++; in getcode()
1401 if (n_bits == maxbits) in getcode()
1405 maxcode = MAXCODE(n_bits); in getcode()
1408 maxcode = MAXCODE(n_bits = INIT_BITS); in getcode()
1411 size = fread(buf, 1, n_bits, inp); in getcode()
1424 size = (size << 3) - (n_bits - 1); in getcode()
1427 bits = n_bits; in getcode()
1445 offset += n_bits; in getcode()
1460 bits = n_bits = INIT_BITS; in printcodes()
1461 maxcode = MAXCODE(n_bits); in printcodes()
1469 if (bits != n_bits) { in printcodes()
1470 (void) fprintf(stderr, "\nChange to %d bits\n", n_bits); in printcodes()
1471 bits = n_bits; in printcodes()