Lines Matching defs:bits

30  * - Add comments on state->bits assertion in inffast.c
137 state->bits = 0;
182 /* set number of window bits, free window if different */
248 int ZEXPORT inflatePrime(strm, bits, value)
250 int bits;
257 if (bits < 0) {
259 state->bits = 0;
262 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
263 value &= (1L << bits) - 1;
264 state->hold += (unsigned)value << state->bits;
265 state->bits += (uInt)bits;
289 unsigned sym, bits;
300 bits = 9;
301 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
307 bits = 5;
308 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
364 state.lencode[low].bits, state.lencode[low].val);
374 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
484 bits = state->bits; \
495 state->bits = bits; \
502 bits = 0; \
511 hold += (unsigned long)(*next++) << bits; \
512 bits += 8; \
515 /* Assure that there are at least n bits in the bit accumulator. If there is
519 while (bits < (unsigned)(n)) \
523 /* Return the low n bits of the bit accumulator (n < 16) */
527 /* Remove n bits from the bit accumulator */
531 bits -= (unsigned)(n); \
534 /* Remove zero to seven bits as needed to go to a byte boundary */
537 hold >>= bits & 7; \
538 bits -= bits & 7; \
561 the requested bits are not available. The typical use of the BITS macros
569 input left to load n bits into the accumulator, or it continues. BITS(n)
570 gives the low n bits in the accumulator. When done, DROPBITS(n) drops
571 the low n bits off the accumulator. INITBITS() clears the accumulator
572 and sets the number of available bits to zero. BYTEBITS() discards just
573 enough bits to put the accumulator on a byte boundary. After BYTEBITS()
632 unsigned bits; /* bits in bit buffer */
638 unsigned len; /* length to copy for repeats, bits to drop */
978 if ((unsigned)(here.bits) <= bits) break;
982 DROPBITS(here.bits);
987 NEEDBITS(here.bits + 2);
988 DROPBITS(here.bits);
999 NEEDBITS(here.bits + 3);
1000 DROPBITS(here.bits);
1006 NEEDBITS(here.bits + 7);
1007 DROPBITS(here.bits);
1073 if ((unsigned)(here.bits) <= bits) break;
1080 (BITS(last.bits + last.op) >> last.bits)];
1081 if ((unsigned)(last.bits + here.bits) <= bits) break;
1084 DROPBITS(last.bits);
1085 state->back += last.bits;
1087 DROPBITS(here.bits);
1088 state->back += here.bits;
1125 if ((unsigned)(here.bits) <= bits) break;
1132 (BITS(last.bits + last.op) >> last.bits)];
1133 if ((unsigned)(last.bits + here.bits) <= bits) break;
1136 DROPBITS(last.bits);
1137 state->back += last.bits;
1139 DROPBITS(here.bits);
1140 state->back += here.bits;
1293 strm->data_type = (int)state->bits + (state->last ? 64 : 0) +
1436 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1441 state->hold <<= state->bits & 7;
1442 state->bits -= state->bits & 7;
1444 while (state->bits >= 8) {
1447 state->bits -= 8;
1489 return state->mode == STORED && state->bits == 0;