Lines Matching defs:bits

32  * - Add comments on state->bits assertion in inffast.c
139 state->bits = 0;
186 /* set number of window bits, free window if different */
252 int ZEXPORT inflatePrime(strm, bits, value)
254 int bits;
261 if (bits < 0) {
263 state->bits = 0;
266 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
267 value &= (1L << bits) - 1;
268 state->hold += (unsigned)value << state->bits;
269 state->bits += (uInt)bits;
293 unsigned sym, bits;
304 bits = 9;
305 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
311 bits = 5;
312 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
368 state.lencode[low].bits, state.lencode[low].val);
378 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
488 bits = state->bits; \
499 state->bits = bits; \
506 bits = 0; \
515 hold += (unsigned long)(*next++) << bits; \
516 bits += 8; \
519 /* Assure that there are at least n bits in the bit accumulator. If there is
523 while (bits < (unsigned)(n)) \
527 /* Return the low n bits of the bit accumulator (n < 16) */
531 /* Remove n bits from the bit accumulator */
535 bits -= (unsigned)(n); \
538 /* Remove zero to seven bits as needed to go to a byte boundary */
541 hold >>= bits & 7; \
542 bits -= bits & 7; \
565 the requested bits are not available. The typical use of the BITS macros
573 input left to load n bits into the accumulator, or it continues. BITS(n)
574 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
575 the low n bits off the accumulator. INITBITS() clears the accumulator
576 and sets the number of available bits to zero. BYTEBITS() discards just
577 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
636 unsigned bits; /* bits in bit buffer */
642 unsigned len; /* length to copy for repeats, bits to drop */
990 if ((unsigned)(here.bits) <= bits) break;
994 DROPBITS(here.bits);
999 NEEDBITS(here.bits + 2);
1000 DROPBITS(here.bits);
1011 NEEDBITS(here.bits + 3);
1012 DROPBITS(here.bits);
1018 NEEDBITS(here.bits + 7);
1019 DROPBITS(here.bits);
1085 if ((unsigned)(here.bits) <= bits) break;
1092 (BITS(last.bits + last.op) >> last.bits)];
1093 if ((unsigned)(last.bits + here.bits) <= bits) break;
1096 DROPBITS(last.bits);
1097 state->back += last.bits;
1099 DROPBITS(here.bits);
1100 state->back += here.bits;
1137 if ((unsigned)(here.bits) <= bits) break;
1144 (BITS(last.bits + last.op) >> last.bits)];
1145 if ((unsigned)(last.bits + here.bits) <= bits) break;
1148 DROPBITS(last.bits);
1149 state->back += last.bits;
1151 DROPBITS(here.bits);
1152 state->back += here.bits;
1305 strm->data_type = (int)state->bits + (state->last ? 64 : 0) +
1448 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1453 state->hold <<= state->bits & 7;
1454 state->bits -= state->bits & 7;
1456 while (state->bits >= 8) {
1459 state->bits -= 8;
1501 return state->mode == STORED && state->bits == 0;