Lines Matching refs:bits
69 #define BITS MAXBITS /* Default bits. */
85 #define INIT_BITS 9 /* Initial number of bits/code. */
94 int zs_n_bits; /* Number of bits/code. */
95 int zs_maxbits; /* User settable max # bits/code. */
210 * Chars are 8 bits long.
225 register int bits, r_off;
229 bits = n_bits;
236 * Since ocode is always >= 8 bits, only need to mask the first
241 bits -= (8 - r_off);
243 /* Get any 8 bit parts in the middle (<=1 for up to 16 bits). */
244 if (bits >= 8) {
247 bits -= 8;
249 /* Last bits. */
250 if (bits)
255 bits = n_bits;
256 bytes_out += bits;
257 if (sfwr(f, bp, bits, dp) != bits)
259 bp += bits;
260 bits = 0;
314 register int r_off, bits;
343 bits = n_bits;
349 /* Get first part (low order bits). */
351 bits -= (8 - r_off);
354 /* Get any 8 bit parts in the middle (<=1 for up to 16 bits). */
355 if (bits >= 8) {
358 bits -= 8;
361 /* High order bits. */
362 gcode |= (*bp & rmask[bits]) << r_off;
416 rat = (in_count << 8) / bytes_out; /* 8 fractional bits. */
462 (*p->disc->errorf)(NiL, p->disc, 2, "%s: maximum bits per code must be in [%d..%d]", s, MINBITS, MAXBITS);
593 /* First code must be 8 bits = char. */
723 " of bits per code { 9 - 16 }. The default is 16.",