Lines Matching defs:BITS
51 unsigned sym, bits, low, size;
64 bits = 9;
65 inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work);
71 bits = 5;
72 inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work);
89 printf("{%u,%u,%d}", lenfix[low].op, lenfix[low].bits,
100 printf("{%u,%u,%d}", distfix[low].op, distfix[low].bits,
115 bits = 0; \
138 hold += (unsigned long)(*next++) << bits; \
139 bits += 8; \
142 /* Assure that there are at least n bits in the bit accumulator. If there is
147 while (bits < (unsigned)(n)) \
151 /* Return the low n bits of the bit accumulator (n <= 16) */
152 #define BITS(n) \
155 /* Remove n bits from the bit accumulator */
159 bits -= (unsigned)(n); \
162 /* Remove zero to seven bits as needed to go to a byte boundary */
165 hold >>= bits & 7; \
166 bits -= bits & 7; \
224 unsigned bits; /* bits in bit buffer */
225 unsigned extra; /* extra bits needed */
232 unsigned lenbits; /* index bits for lencode */
233 unsigned distbits; /* index bits for distcode */
236 unsigned len; /* length to copy for repeats, bits to drop */
256 bits = 0;
273 lastblock = BITS(1);
275 switch (BITS(2)) {
337 state->nlen = BITS(5) + 257;
339 state->ndist = BITS(5) + 1;
341 state->ncode = BITS(4) + 4;
354 state->lens[order[state->have++]] = (unsigned short)BITS(3);
375 here = lencode[BITS(lenbits)];
376 if ((unsigned)(here.bits) <= bits) break;
380 NEEDBITS(here.bits);
381 DROPBITS(here.bits);
386 NEEDBITS(here.bits + 2);
387 DROPBITS(here.bits);
394 copy = 3 + BITS(2);
398 NEEDBITS(here.bits + 3);
399 DROPBITS(here.bits);
401 copy = 3 + BITS(3);
405 NEEDBITS(here.bits + 7);
406 DROPBITS(here.bits);
408 copy = 11 + BITS(7);
460 here = lencode[BITS(lenbits)];
461 if ((unsigned)(here.bits) <= bits) break;
468 (BITS(last.bits + last.op) >> last.bits)];
469 if ((unsigned)(last.bits + here.bits) <= bits) break;
472 DROPBITS(last.bits);
474 DROPBITS(here.bits);
503 /* length code -- get extra bits, if any */
507 length += BITS(extra);
514 here = distcode[BITS(distbits)];
515 if ((unsigned)(here.bits) <= bits) break;
522 (BITS(last.bits + last.op) >> last.bits)];
523 if ((unsigned)(last.bits + here.bits) <= bits) break;
526 DROPBITS(last.bits);
528 DROPBITS(here.bits);
536 /* get distance extra bits, if any */
540 offset += BITS(extra);