Lines Matching defs:bits

30  * - Add comments on state->bits assertion in inffast.c
136 state->bits = 0;
181 /* set number of window bits, free window if different */
247 int ZEXPORT inflatePrime(strm, bits, value)
249 int bits;
256 if (bits < 0) {
258 state->bits = 0;
261 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
262 value &= (1L << bits) - 1;
263 state->hold += (unsigned)value << state->bits;
264 state->bits += (uInt)bits;
288 unsigned sym, bits;
299 bits = 9;
300 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
306 bits = 5;
307 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
363 state.lencode[low].bits, state.lencode[low].val);
373 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
483 bits = state->bits; \
494 state->bits = bits; \
501 bits = 0; \
510 hold += (unsigned long)(*next++) << bits; \
511 bits += 8; \
514 /* Assure that there are at least n bits in the bit accumulator. If there is
518 while (bits < (unsigned)(n)) \
522 /* Return the low n bits of the bit accumulator (n < 16) */
526 /* Remove n bits from the bit accumulator */
530 bits -= (unsigned)(n); \
533 /* Remove zero to seven bits as needed to go to a byte boundary */
536 hold >>= bits & 7; \
537 bits -= bits & 7; \
560 the requested bits are not available. The typical use of the BITS macros
568 input left to load n bits into the accumulator, or it continues. BITS(n)
569 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
570 the low n bits off the accumulator. INITBITS() clears the accumulator
571 and sets the number of available bits to zero. BYTEBITS() discards just
572 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
631 unsigned bits; /* bits in bit buffer */
637 unsigned len; /* length to copy for repeats, bits to drop */
963 if ((unsigned)(here.bits) <= bits) break;
967 DROPBITS(here.bits);
972 NEEDBITS(here.bits + 2);
973 DROPBITS(here.bits);
984 NEEDBITS(here.bits + 3);
985 DROPBITS(here.bits);
991 NEEDBITS(here.bits + 7);
992 DROPBITS(here.bits);
1056 if ((unsigned)(here.bits) <= bits) break;
1063 (BITS(last.bits + last.op) >> last.bits)];
1064 if ((unsigned)(last.bits + here.bits) <= bits) break;
1067 DROPBITS(last.bits);
1068 state->back += last.bits;
1070 DROPBITS(here.bits);
1071 state->back += here.bits;
1106 if ((unsigned)(here.bits) <= bits) break;
1113 (BITS(last.bits + last.op) >> last.bits)];
1114 if ((unsigned)(last.bits + here.bits) <= bits) break;
1117 DROPBITS(last.bits);
1118 state->back += last.bits;
1120 DROPBITS(here.bits);
1121 state->back += here.bits;
1269 strm->data_type = (int)state->bits + (state->last ? 64 : 0) +
1411 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1416 state->hold <<= state->bits & 7;
1417 state->bits -= state->bits & 7;
1419 while (state->bits >= 8) {
1422 state->bits -= 8;
1458 return state->mode == STORED && state->bits == 0;