Lines Matching defs:bits
498 * bits or less.
500 * Analysis: The longest fixed codes are a length code of 8 bits plus 5
501 * extra bits, for lengths 131 to 257. The longest fixed distance codes are
502 * 5 bits plus 13 extra bits, for distances 16385 to 32768. The longest
503 * possible fixed-codes length/distance pair is then 31 bits total.
510 * 31 bits are written to pending_buf. The closest the written pending_buf
511 * bits gets to the next sym_buf symbol to read is just before the last
512 * code is written. At that time, 31*(n - 2) bits have been written, just
513 * after 24*(n - 2) bits have been consumed from sym_buf. sym_buf starts at
514 * 8*n bits into pending_buf. (Note that the symbol buffer fills when n - 1
516 * then n + 14 bits. Here n is lit_bufsize, which is 16384 by default, and
519 * Therefore, at a minimum, there are 142 bits of space between what is
521 * be overwritten by the compressed data. That space is actually 139 bits,
529 * fewer bits than a fixed-code block would for the same set of symbols.
751 int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits) {
755 if (bits != Z_NULL)
756 *bits = strm->state->bi_valid;
761 int ZEXPORT deflatePrime(z_streamp strm, int bits, int value) {
768 if (bits < 0 || bits > 16 ||
772 if (bits < 0 || bits > 16 ||
778 if (put > bits)
779 put = bits;
784 bits -= put;
785 } while (bits);
866 * dynamic block, where a fixed block limits the maximum expansion to 9 bits
867 * per 8-bit byte, plus 10 bits for every block. The smallest block size for
1725 * including any pending bits. This also updates the debugging counts.