Home | History | Annotate | Download | only in zlib

Lines Matching defs:BITS

83         unsigned sym, bits;

94 bits = 9;
95 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
101 bits = 5;
102 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
126 bits = state->bits; \
137 state->bits = bits; \
144 bits = 0; \
167 hold += (unsigned long)(*next++) << bits; \
168 bits += 8; \
171 /* Assure that there are at least n bits in the bit accumulator. If there is
176 while (bits < (unsigned)(n)) \
180 /* Return the low n bits of the bit accumulator (n < 16) */
181 #define BITS(n) \
184 /* Remove n bits from the bit accumulator */
188 bits -= (unsigned)(n); \
191 /* Remove zero to seven bits as needed to go to a byte boundary */
194 hold >>= bits & 7; \
195 bits -= bits & 7; \
253 unsigned bits; /* bits in bit buffer */
258 unsigned len; /* length to copy for repeats, bits to drop */
276 bits = 0;
291 state->last = BITS(1);
293 switch (BITS(2)) {
352 state->nlen = BITS(5) + 257;
354 state->ndist = BITS(5) + 1;
356 state->ncode = BITS(4) + 4;
371 state->lens[order[state->have++]] = (unsigned short)BITS(3);
392 this = state->lencode[BITS(state->lenbits)];
393 if ((unsigned)(this.bits) <= bits) break;
397 NEEDBITS(this.bits);
398 DROPBITS(this.bits);
403 NEEDBITS(this.bits + 2);
404 DROPBITS(this.bits);
411 copy = 3 + BITS(2);
415 NEEDBITS(this.bits + 3);
416 DROPBITS(this.bits);
418 copy = 3 + BITS(3);
422 NEEDBITS(this.bits + 7);
423 DROPBITS(this.bits);
425 copy = 11 + BITS(7);
477 this = state->lencode[BITS(state->lenbits)];
478 if ((unsigned)(this.bits) <= bits) break;
485 (BITS(last.bits + last.op) >> last.bits)];
486 if ((unsigned)(last.bits + this.bits) <= bits) break;
489 DROPBITS(last.bits);
491 DROPBITS(this.bits);
520 /* length code -- get extra bits, if any */
524 state->length += BITS(state->extra);
531 this = state->distcode[BITS(state->distbits)];
532 if ((unsigned)(this.bits) <= bits) break;
539 (BITS(last.bits + last.op) >> last.bits)];
540 if ((unsigned)(last.bits + this.bits) <= bits) break;
543 DROPBITS(last.bits);
545 DROPBITS(this.bits);
553 /* get distance extra bits, if any */
557 state->offset += BITS(state->extra);