Lines Matching defs:bits

30  * - Add comments on state->bits assertion in inffast.c
123 state->bits = 0;
165 /* set number of window bits, free window if different */
224 int ZEXPORT inflatePrime(z_streamp strm, int bits, int value) {
228 if (bits == 0)
233 if (bits < 0) {
235 state->bits = 0;
238 if (bits > 16 || state->bits + (uInt)bits > 32)
242 value &= (1L << bits) - 1;
243 state->hold += (unsigned)value << state->bits;
244 state->bits += (uInt)bits;
266 unsigned sym, bits;
277 bits = 9;
278 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
284 bits = 5;
285 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
341 state.lencode[low].bits, state.lencode[low].val);
354 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
464 bits = state->bits; \
475 state->bits = bits; \
482 bits = 0; \
491 hold += (unsigned long)(*next++) << bits; \
492 bits += 8; \
495 /* Assure that there are at least n bits in the bit accumulator. If there is
499 while (bits < (unsigned)(n)) \
503 /* Return the low n bits of the bit accumulator (n < 16) */
507 /* Remove n bits from the bit accumulator */
511 bits -= (unsigned)(n); \
514 /* Remove zero to seven bits as needed to go to a byte boundary */
517 hold >>= bits & 7; \
518 bits -= bits & 7; \
541 the requested bits are not available. The typical use of the BITS macros
549 input left to load n bits into the accumulator, or it continues. BITS(n)
550 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
551 the low n bits off the accumulator. INITBITS() clears the accumulator
552 and sets the number of available bits to zero. BYTEBITS() discards just
553 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
609 unsigned bits; /* bits in bit buffer */
615 unsigned len; /* length to copy for repeats, bits to drop */
1015 if ((unsigned)(here.bits) <= bits) break;
1019 DROPBITS(here.bits);
1024 NEEDBITS(here.bits + 2);
1025 DROPBITS(here.bits);
1036 NEEDBITS(here.bits + 3);
1037 DROPBITS(here.bits);
1043 NEEDBITS(here.bits + 7);
1044 DROPBITS(here.bits);
1118 if ((unsigned)(here.bits) <= bits)
1128 (BITS(last.bits + last.op) >> last.bits)];
1129 if ((unsigned)(last.bits + here.bits) <= bits)
1135 DROPBITS(last.bits);
1136 state->back += last.bits;
1138 DROPBITS(here.bits);
1139 state->back += here.bits;
1176 if ((unsigned)(here.bits) <= bits)
1186 (BITS(last.bits + last.op) >> last.bits)];
1187 if ((unsigned)(last.bits + here.bits) <= bits)
1193 DROPBITS(last.bits);
1194 state->back += last.bits;
1196 DROPBITS(here.bits);
1197 state->back += here.bits;
1376 strm->data_type = (int)state->bits + (state->last ? 64 : 0) +
1535 if (strm->avail_in == 0 && state->bits < 8)
1543 state->hold >>= state->bits & 7;
1544 state->bits -= state->bits & 7;
1546 while (state->bits >= 8) {
1549 state->bits -= 8;
1599 return state->mode == STORED && state->bits == 0;