Lines Matching defs:bits

57  * - Add comments on state->bits assertion in inffast.c
149 state->bits = 0;
155 int ZEXPORT inflatePrime(strm, bits, value)
157 int bits;
164 if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR;
165 value &= (1L << bits) - 1;
166 state->hold += value << state->bits;
167 state->bits += bits;
244 unsigned sym, bits;
255 bits = 9;
256 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
262 bits = 5;
263 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
318 printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits,
329 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
439 bits = state->bits; \
450 state->bits = bits; \
457 bits = 0; \
466 hold += (unsigned long)(*next++) << bits; \
467 bits += 8; \
470 /* Assure that there are at least n bits in the bit accumulator. If there is
474 while (bits < (unsigned)(n)) \
478 /* Return the low n bits of the bit accumulator (n < 16) */
482 /* Remove n bits from the bit accumulator */
486 bits -= (unsigned)(n); \
489 /* Remove zero to seven bits as needed to go to a byte boundary */
492 hold >>= bits & 7; \
493 bits -= bits & 7; \
521 the requested bits are not available. The typical use of the BITS macros
529 input left to load n bits into the accumulator, or it continues. BITS(n)
530 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
531 the low n bits off the accumulator. INITBITS() clears the accumulator
532 and sets the number of available bits to zero. BYTEBITS() discards just
533 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
592 unsigned bits; /* bits in bit buffer */
598 unsigned len; /* length to copy for repeats, bits to drop */
909 if ((unsigned)(this.bits) <= bits) break;
913 NEEDBITS(this.bits);
914 DROPBITS(this.bits);
919 NEEDBITS(this.bits + 2);
920 DROPBITS(this.bits);
931 NEEDBITS(this.bits + 3);
932 DROPBITS(this.bits);
938 NEEDBITS(this.bits + 7);
939 DROPBITS(this.bits);
988 if ((unsigned)(this.bits) <= bits) break;
995 (BITS(last.bits + last.op) >> last.bits)];
996 if ((unsigned)(last.bits + this.bits) <= bits) break;
999 DROPBITS(last.bits);
1001 DROPBITS(this.bits);
1033 if ((unsigned)(this.bits) <= bits) break;
1040 (BITS(last.bits + last.op) >> last.bits)];
1041 if ((unsigned)(last.bits + this.bits) <= bits) break;
1044 DROPBITS(last.bits);
1046 DROPBITS(this.bits);
1177 strm->data_type = state->bits + (state->last ? 64 : 0) +
1302 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1307 state->hold <<= state->bits & 7;
1308 state->bits -= state->bits & 7;
1310 while (state->bits >= 8) {
1313 state->bits -= 8;
1349 return state->mode == STORED && state->bits == 0;