Lines Matching defs:bits

37  * - Add comments on state->bits assertion in inffast.c
129 state->bits = 0;
135 int ZEXPORT inflatePrime(strm, bits, value)
137 int bits;
144 if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR;
145 value &= (1L << bits) - 1;
146 state->hold += value << state->bits;
147 state->bits += bits;
222 unsigned sym, bits;
233 bits = 9;
234 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
240 bits = 5;
241 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
296 printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits,
307 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
417 bits = state->bits; \
428 state->bits = bits; \
435 bits = 0; \
444 hold += (unsigned long)(*next++) << bits; \
445 bits += 8; \
448 /* Assure that there are at least n bits in the bit accumulator. If there is
452 while (bits < (unsigned)(n)) \
456 /* Return the low n bits of the bit accumulator (n < 16) */
460 /* Remove n bits from the bit accumulator */
464 bits -= (unsigned)(n); \
467 /* Remove zero to seven bits as needed to go to a byte boundary */
470 hold >>= bits & 7; \
471 bits -= bits & 7; \
499 the requested bits are not available. The typical use of the BITS macros
507 input left to load n bits into the accumulator, or it continues. BITS(n)
508 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
509 the low n bits off the accumulator. INITBITS() clears the accumulator
510 and sets the number of available bits to zero. BYTEBITS() discards just
511 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
570 unsigned bits; /* bits in bit buffer */
576 unsigned len; /* length to copy for repeats, bits to drop */
900 if ((unsigned)(this.bits) <= bits) break;
904 NEEDBITS(this.bits);
905 DROPBITS(this.bits);
910 NEEDBITS(this.bits + 2);
911 DROPBITS(this.bits);
922 NEEDBITS(this.bits + 3);
923 DROPBITS(this.bits);
929 NEEDBITS(this.bits + 7);
930 DROPBITS(this.bits);
980 if ((unsigned)(this.bits) <= bits) break;
987 (BITS(last.bits + last.op) >> last.bits)];
988 if ((unsigned)(last.bits + this.bits) <= bits) break;
991 DROPBITS(last.bits);
993 DROPBITS(this.bits);
1027 if ((unsigned)(this.bits) <= bits) break;
1034 (BITS(last.bits + last.op) >> last.bits)];
1035 if ((unsigned)(last.bits + this.bits) <= bits) break;
1038 DROPBITS(last.bits);
1040 DROPBITS(this.bits);
1175 strm->data_type = state->bits + (state->last ? 64 : 0) +
1300 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1305 state->hold <<= state->bits & 7;
1306 state->bits -= state->bits & 7;
1308 while (state->bits >= 8) {
1311 state->bits -= 8;
1347 return state->mode == STORED && state->bits == 0;