Lines Matching defs:bits
111 #define INIT_BITS 9 /* initial number of bits/code */
133 static int n_bits; /* number of bits/code */
134 static int maxbits = BITS; /* user settable max # bits/code */
290 * Usage: compress [-dfvc/] [-b bits] [file ...]
296 * -b: Parameter limits the max number of bits/code.
636 "with %d bits, "
638 " %d bits\n"),
1120 " (%d bits)\n",
1146 * Chars are 8 bits long.
1160 int r_off = offset, bits = n_bits;
1179 * Since code is always >= 8 bits, only need to mask the first
1184 bits -= (8 - r_off);
1188 * bits).
1190 if (bits >= 8) {
1193 bits -= 8;
1195 /* Last bits. */
1196 if (bits)
1201 bits = n_bits;
1202 bytes_out += bits;
1209 } while (--bits);
1244 "\nChange to %d bits\n", n_bits);
1299 /* first code must be 8 bits = char */
1390 int r_off, bits;
1427 bits = n_bits;
1433 /* Get first part (low order bits) */
1435 bits -= (8 - r_off);
1437 /* Get any 8 bit parts in the middle (<=1 for up to 16 bits). */
1438 if (bits >= 8) {
1441 bits -= 8;
1443 /* high order bits. */
1444 code |= (*bp & rmask[bits]) << r_off;
1458 int col = 0, bits;
1460 bits = n_bits = INIT_BITS;
1469 if (bits != n_bits) {
1470 (void) fprintf(stderr, "\nChange to %d bits\n", n_bits);
1471 bits = n_bits;
1757 /* 8 fractional bits */