Home | History | Annotate | Download | only in infback9

Lines Matching refs:BITS

56     unsigned sym, bits, low, size;
69 bits = 9;
70 inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work);
76 bits = 5;
77 inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work);
94 printf("{%u,%u,%d}", lenfix[low].op, lenfix[low].bits,
105 printf("{%u,%u,%d}", distfix[low].op, distfix[low].bits,
120 bits = 0; \
143 hold += (unsigned long)(*next++) << bits; \
144 bits += 8; \
147 /* Assure that there are at least n bits in the bit accumulator. If there is
152 while (bits < (unsigned)(n)) \
156 /* Return the low n bits of the bit accumulator (n <= 16) */
157 #define BITS(n) \
160 /* Remove n bits from the bit accumulator */
164 bits -= (unsigned)(n); \
167 /* Remove zero to seven bits as needed to go to a byte boundary */
170 hold >>= bits & 7; \
171 bits -= bits & 7; \
234 unsigned bits; /* bits in bit buffer */
235 unsigned extra; /* extra bits needed */
242 unsigned lenbits; /* index bits for lencode */
243 unsigned distbits; /* index bits for distcode */
246 unsigned len; /* length to copy for repeats, bits to drop */
266 bits = 0;
283 lastblock = BITS(1);
285 switch (BITS(2)) {
347 state->nlen = BITS(5) + 257;
349 state->ndist = BITS(5) + 1;
351 state->ncode = BITS(4) + 4;
364 state->lens[order[state->have++]] = (unsigned short)BITS(3);
385 here = lencode[BITS(lenbits)];
386 if ((unsigned)(here.bits) <= bits) break;
390 NEEDBITS(here.bits);
391 DROPBITS(here.bits);
396 NEEDBITS(here.bits + 2);
397 DROPBITS(here.bits);
404 copy = 3 + BITS(2);
408 NEEDBITS(here.bits + 3);
409 DROPBITS(here.bits);
411 copy = 3 + BITS(3);
415 NEEDBITS(here.bits + 7);
416 DROPBITS(here.bits);
418 copy = 11 + BITS(7);
470 here = lencode[BITS(lenbits)];
471 if ((unsigned)(here.bits) <= bits) break;
478 (BITS(last.bits + last.op) >> last.bits)];
479 if ((unsigned)(last.bits + here.bits) <= bits) break;
482 DROPBITS(last.bits);
484 DROPBITS(here.bits);
513 /* length code -- get extra bits, if any */
517 length += BITS(extra);
524 here = distcode[BITS(distbits)];
525 if ((unsigned)(here.bits) <= bits) break;
532 (BITS(last.bits + last.op) >> last.bits)];
533 if ((unsigned)(last.bits + here.bits) <= bits) break;
536 DROPBITS(last.bits);
538 DROPBITS(here.bits);
546 /* get distance extra bits, if any */
550 offset += BITS(extra);