Home | History | Annotate | Download | only in src

Lines Matching defs:bits

92         unsigned sym, bits;
103 bits = 9;
104 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
110 bits = 5;
111 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
135 bits = state->bits; \
146 state->bits = bits; \
153 bits = 0; \
176 hold += (unsigned long)(*next++) << bits; \
177 bits += 8; \
180 /* Assure that there are at least n bits in the bit accumulator. If there is
185 while (bits < (unsigned)(n)) \
189 /* Return the low n bits of the bit accumulator (n < 16) */
190 #define BITS(n) \
193 /* Remove n bits from the bit accumulator */
197 bits -= (unsigned)(n); \
200 /* Remove zero to seven bits as needed to go to a byte boundary */
203 hold >>= bits & 7; \
204 bits -= bits & 7; \
262 unsigned bits; /* bits in bit buffer */
267 unsigned len; /* length to copy for repeats, bits to drop */
285 bits = 0;
300 state->last = BITS(1);
302 switch (BITS(2)) {
361 state->nlen = BITS(5) + 257;
363 state->ndist = BITS(5) + 1;
365 state->ncode = BITS(4) + 4;
380 state->lens[order[state->have++]] = (unsigned short)BITS(3);
401 here = state->lencode[BITS(state->lenbits)];
402 if ((unsigned)(here.bits) <= bits) break;
406 DROPBITS(here.bits);
411 NEEDBITS(here.bits + 2);
412 DROPBITS(here.bits);
419 copy = 3 + BITS(2);
423 NEEDBITS(here.bits + 3);
424 DROPBITS(here.bits);
426 copy = 3 + BITS(3);
430 NEEDBITS(here.bits + 7);
431 DROPBITS(here.bits);
433 copy = 11 + BITS(7);
494 here = state->lencode[BITS(state->lenbits)];
495 if ((unsigned)(here.bits) <= bits) break;
502 (BITS(last.bits + last.op) >> last.bits)];
503 if ((unsigned)(last.bits + here.bits) <= bits) break;
506 DROPBITS(last.bits);
508 DROPBITS(here.bits);
537 /* length code -- get extra bits, if any */
541 state->length += BITS(state->extra);
548 here = state->distcode[BITS(state->distbits)];
549 if ((unsigned)(here.bits) <= bits) break;
556 (BITS(last.bits + last.op) >> last.bits)];
557 if ((unsigned)(last.bits + here.bits) <= bits) break;
560 DROPBITS(last.bits);
562 DROPBITS(here.bits);
570 /* get distance extra bits, if any */
574 state->offset += BITS(state->extra);