Lines Matching defs:bits

30  * - Add comments on state->bits assertion in inffast.c
121 state->bits = 0;
166 /* set number of window bits, free window if different */
230 int ZEXPORT inflatePrime(strm, bits, value)
232 int bits;
239 if (bits < 0) {
241 state->bits = 0;
244 if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR;
245 value &= (1L << bits) - 1;
246 state->hold += value << state->bits;
247 state->bits += bits;
271 unsigned sym, bits;
282 bits = 9;
283 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
289 bits = 5;
290 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
346 state.lencode[low].bits, state.lencode[low].val);
356 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
466 bits = state->bits; \
477 state->bits = bits; \
484 bits = 0; \
493 hold += (unsigned long)(*next++) << bits; \
494 bits += 8; \
497 /* Assure that there are at least n bits in the bit accumulator. If there is
501 while (bits < (unsigned)(n)) \
505 /* Return the low n bits of the bit accumulator (n < 16) */
509 /* Remove n bits from the bit accumulator */
513 bits -= (unsigned)(n); \
516 /* Remove zero to seven bits as needed to go to a byte boundary */
519 hold >>= bits & 7; \
520 bits -= bits & 7; \
543 the requested bits are not available. The typical use of the BITS macros
551 input left to load n bits into the accumulator, or it continues. BITS(n)
552 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
553 the low n bits off the accumulator. INITBITS() clears the accumulator
554 and sets the number of available bits to zero. BYTEBITS() discards just
555 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
614 unsigned bits; /* bits in bit buffer */
620 unsigned len; /* length to copy for repeats, bits to drop */
940 if ((unsigned)(here.bits) <= bits) break;
944 DROPBITS(here.bits);
949 NEEDBITS(here.bits + 2);
950 DROPBITS(here.bits);
961 NEEDBITS(here.bits + 3);
962 DROPBITS(here.bits);
968 NEEDBITS(here.bits + 7);
969 DROPBITS(here.bits);
1033 if ((unsigned)(here.bits) <= bits) break;
1040 (BITS(last.bits + last.op) >> last.bits)];
1041 if ((unsigned)(last.bits + here.bits) <= bits) break;
1044 DROPBITS(last.bits);
1045 state->back += last.bits;
1047 DROPBITS(here.bits);
1048 state->back += here.bits;
1083 if ((unsigned)(here.bits) <= bits) break;
1090 (BITS(last.bits + last.op) >> last.bits)];
1091 if ((unsigned)(last.bits + here.bits) <= bits) break;
1094 DROPBITS(last.bits);
1095 state->back += last.bits;
1097 DROPBITS(here.bits);
1098 state->back += here.bits;
1246 strm->data_type = state->bits + (state->last ? 64 : 0) +
1388 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1393 state->hold <<= state->bits & 7;
1394 state->bits -= state->bits & 7;
1396 while (state->bits >= 8) {
1399 state->bits -= 8;
1435 return state->mode == STORED && state->bits == 0;