Lines Matching defs:BITS
86 unsigned sym, bits;
97 bits = 9;
98 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
104 bits = 5;
105 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
129 bits = state->bits; \
140 state->bits = bits; \
147 bits = 0; \
170 hold += (unsigned long)(*next++) << bits; \
171 bits += 8; \
174 /* Assure that there are at least n bits in the bit accumulator. If there is
179 while (bits < (unsigned)(n)) \
183 /* Return the low n bits of the bit accumulator (n < 16) */
184 #define BITS(n) \
187 /* Remove n bits from the bit accumulator */
191 bits -= (unsigned)(n); \
194 /* Remove zero to seven bits as needed to go to a byte boundary */
197 hold >>= bits & 7; \
198 bits -= bits & 7; \
251 unsigned bits; /* bits in bit buffer */
256 unsigned len; /* length to copy for repeats, bits to drop */
274 bits = 0;
289 state->last = BITS(1);
291 switch (BITS(2)) {
350 state->nlen = BITS(5) + 257;
352 state->ndist = BITS(5) + 1;
354 state->ncode = BITS(4) + 4;
369 state->lens[order[state->have++]] = (unsigned short)BITS(3);
390 here = state->lencode[BITS(state->lenbits)];
391 if ((unsigned)(here.bits) <= bits) break;
395 DROPBITS(here.bits);
400 NEEDBITS(here.bits + 2);
401 DROPBITS(here.bits);
408 copy = 3 + BITS(2);
412 NEEDBITS(here.bits + 3);
413 DROPBITS(here.bits);
415 copy = 3 + BITS(3);
419 NEEDBITS(here.bits + 7);
420 DROPBITS(here.bits);
422 copy = 11 + BITS(7);
484 here = state->lencode[BITS(state->lenbits)];
485 if ((unsigned)(here.bits) <= bits) break;
492 (BITS(last.bits + last.op) >> last.bits)];
493 if ((unsigned)(last.bits + here.bits) <= bits) break;
496 DROPBITS(last.bits);
498 DROPBITS(here.bits);
527 /* length code -- get extra bits, if any */
531 state->length += BITS(state->extra);
538 here = state->distcode[BITS(state->distbits)];
539 if ((unsigned)(here.bits) <= bits) break;
546 (BITS(last.bits + last.op) >> last.bits)];
547 if ((unsigned)(last.bits + here.bits) <= bits) break;
550 DROPBITS(last.bits);
552 DROPBITS(here.bits);
560 /* get distance extra bits, if any */
564 state->offset += BITS(state->extra);