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; \
235 unsigned bits; /* bits in bit buffer */
236 unsigned extra; /* extra bits needed */
243 unsigned lenbits; /* index bits for lencode */
244 unsigned distbits; /* index bits for distcode */
247 unsigned len; /* length to copy for repeats, bits to drop */
268 bits = 0;
285 lastblock = BITS(1);
287 switch (BITS(2)) {
349 state->nlen = BITS(5) + 257;
351 state->ndist = BITS(5) + 1;
353 state->ncode = BITS(4) + 4;
366 state->lens[order[state->have++]] = (unsigned short)BITS(3);
387 here = lencode[BITS(lenbits)];
388 if ((unsigned)(here.bits) <= bits) break;
392 NEEDBITS(here.bits);
393 DROPBITS(here.bits);
398 NEEDBITS(here.bits + 2);
399 DROPBITS(here.bits);
406 copy = 3 + BITS(2);
410 NEEDBITS(here.bits + 3);
411 DROPBITS(here.bits);
413 copy = 3 + BITS(3);
417 NEEDBITS(here.bits + 7);
418 DROPBITS(here.bits);
420 copy = 11 + BITS(7);
472 here = lencode[BITS(lenbits)];
473 if ((unsigned)(here.bits) <= bits) break;
480 (BITS(last.bits + last.op) >> last.bits)];
481 if ((unsigned)(last.bits + here.bits) <= bits) break;
484 DROPBITS(last.bits);
486 DROPBITS(here.bits);
515 /* length code -- get extra bits, if any */
519 length += BITS(extra);
526 here = distcode[BITS(distbits)];
527 if ((unsigned)(here.bits) <= bits) break;
534 (BITS(last.bits + last.op) >> last.bits)];
535 if ((unsigned)(last.bits + here.bits) <= bits) break;
538 DROPBITS(last.bits);
540 DROPBITS(here.bits);
548 /* get distance extra bits, if any */
552 offset += BITS(extra);