Lines Matching refs:bits

122     state->bits = 0;  in inflateResetKeep()
223 int ZEXPORT inflatePrime(z_streamp strm, int bits, int value) { in inflatePrime() argument
227 if (bits == 0) in inflatePrime()
230 if (bits < 0) { in inflatePrime()
232 state->bits = 0; in inflatePrime()
235 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR; in inflatePrime()
236 value &= (1L << bits) - 1; in inflatePrime()
237 state->hold += (unsigned)value << state->bits; in inflatePrime()
238 state->bits += (uInt)bits; in inflatePrime()
260 unsigned sym, bits; in fixedtables() local
271 bits = 9; in fixedtables()
272 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); in fixedtables()
278 bits = 5; in fixedtables()
279 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); in fixedtables()
335 state.lencode[low].bits, state.lencode[low].val); in makefixed()
345 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits, in makefixed()
451 bits = state->bits; \
462 state->bits = bits; \
469 bits = 0; \
478 hold += (unsigned long)(*next++) << bits; \
479 bits += 8; \
486 while (bits < (unsigned)(n)) \
498 bits -= (unsigned)(n); \
504 hold >>= bits & 7; \
505 bits -= bits & 7; \
596 unsigned bits; /* bits in bit buffer */ in inflate() local
943 if ((unsigned)(here.bits) <= bits) break; in inflate()
947 DROPBITS(here.bits); in inflate()
952 NEEDBITS(here.bits + 2); in inflate()
953 DROPBITS(here.bits); in inflate()
964 NEEDBITS(here.bits + 3); in inflate()
965 DROPBITS(here.bits); in inflate()
971 NEEDBITS(here.bits + 7); in inflate()
972 DROPBITS(here.bits); in inflate()
1038 if ((unsigned)(here.bits) <= bits) break; in inflate()
1045 (BITS(last.bits + last.op) >> last.bits)]; in inflate()
1046 if ((unsigned)(last.bits + here.bits) <= bits) break; in inflate()
1049 DROPBITS(last.bits); in inflate()
1050 state->back += last.bits; in inflate()
1052 DROPBITS(here.bits); in inflate()
1053 state->back += here.bits; in inflate()
1090 if ((unsigned)(here.bits) <= bits) break; in inflate()
1097 (BITS(last.bits + last.op) >> last.bits)]; in inflate()
1098 if ((unsigned)(last.bits + here.bits) <= bits) break; in inflate()
1101 DROPBITS(last.bits); in inflate()
1102 state->back += last.bits; in inflate()
1104 DROPBITS(here.bits); in inflate()
1105 state->back += here.bits; in inflate()
1258 strm->data_type = (int)state->bits + (state->last ? 64 : 0) + in inflate()
1385 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR; in inflateSync()
1390 state->hold <<= state->bits & 7; in inflateSync()
1391 state->bits -= state->bits & 7; in inflateSync()
1393 while (state->bits >= 8) { in inflateSync()
1396 state->bits -= 8; in inflateSync()
1436 return state->mode == STORED && state->bits == 0; in inflateSyncPoint()