Lines Matching defs:bits

30  * - Add comments on state->bits assertion in inffast.c
122 state->bits = 0;
164 /* set number of window bits, free window if different */
223 int ZEXPORT inflatePrime(z_streamp strm, int bits, int value) {
227 if (bits == 0)
230 if (bits < 0) {
232 state->bits = 0;
235 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
236 value &= (1L << bits) - 1;
237 state->hold += (unsigned)value << state->bits;
238 state->bits += (uInt)bits;
260 unsigned sym, bits;
271 bits = 9;
272 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
278 bits = 5;
279 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
335 state.lencode[low].bits, state.lencode[low].val);
345 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
451 bits = state->bits; \
462 state->bits = bits; \
469 bits = 0; \
478 hold += (unsigned long)(*next++) << bits; \
479 bits += 8; \
482 /* Assure that there are at least n bits in the bit accumulator. If there is
486 while (bits < (unsigned)(n)) \
490 /* Return the low n bits of the bit accumulator (n < 16) */
494 /* Remove n bits from the bit accumulator */
498 bits -= (unsigned)(n); \
501 /* Remove zero to seven bits as needed to go to a byte boundary */
504 hold >>= bits & 7; \
505 bits -= bits & 7; \
528 the requested bits are not available. The typical use of the BITS macros
536 input left to load n bits into the accumulator, or it continues. BITS(n)
537 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
538 the low n bits off the accumulator. INITBITS() clears the accumulator
539 and sets the number of available bits to zero. BYTEBITS() discards just
540 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
596 unsigned bits; /* bits in bit buffer */
602 unsigned len; /* length to copy for repeats, bits to drop */
943 if ((unsigned)(here.bits) <= bits) break;
947 DROPBITS(here.bits);
952 NEEDBITS(here.bits + 2);
953 DROPBITS(here.bits);
964 NEEDBITS(here.bits + 3);
965 DROPBITS(here.bits);
971 NEEDBITS(here.bits + 7);
972 DROPBITS(here.bits);
1038 if ((unsigned)(here.bits) <= bits) break;
1045 (BITS(last.bits + last.op) >> last.bits)];
1046 if ((unsigned)(last.bits + here.bits) <= bits) break;
1049 DROPBITS(last.bits);
1050 state->back += last.bits;
1052 DROPBITS(here.bits);
1053 state->back += here.bits;
1090 if ((unsigned)(here.bits) <= bits) break;
1097 (BITS(last.bits + last.op) >> last.bits)];
1098 if ((unsigned)(last.bits + here.bits) <= bits) break;
1101 DROPBITS(last.bits);
1102 state->back += last.bits;
1104 DROPBITS(here.bits);
1105 state->back += here.bits;
1258 strm->data_type = (int)state->bits + (state->last ? 64 : 0) +
1385 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1390 state->hold <<= state->bits & 7;
1391 state->bits -= state->bits & 7;
1393 while (state->bits >= 8) {
1396 state->bits -= 8;
1436 return state->mode == STORED && state->bits == 0;