Lines Matching refs:bits
62 #define BITS 16 /* Default bits. */
80 #define INIT_BITS 9 /* Initial number of bits/code. */
89 int zs_n_bits; /* Number of bits/code. */
90 int zs_maxbits; /* User settable max # bits/code. */
203 * Chars are 8 bits long.
218 register int bits, r_off;
222 bits = n_bits;
229 * Since ocode is always >= 8 bits, only need to mask the first
234 bits -= (8 - r_off);
236 /* Get any 8 bit parts in the middle (<=1 for up to 16 bits). */
237 if (bits >= 8) {
240 bits -= 8;
242 /* Last bits. */
243 if (bits)
248 bits = n_bits;
249 bytes_out += bits;
250 if (sfwr(f, bp, bits, dp) != bits)
252 bp += bits;
253 bits = 0;
307 register int r_off, bits;
336 bits = n_bits;
342 /* Get first part (low order bits). */
344 bits -= (8 - r_off);
347 /* Get any 8 bit parts in the middle (<=1 for up to 16 bits). */
348 if (bits >= 8) {
351 bits -= 8;
354 /* High order bits. */
355 gcode |= (*bp & rmask[bits]) << r_off;
407 rat = (in_count << 8) / bytes_out; /* 8 fractional bits. */
657 /* First code must be 8 bits = char. */
770 maxbits = BITS; /* fixed max # bits/code. */