Home | History | Annotate | Download | only in zlib

Lines Matching refs:bits

23    whose indices are 0..2^bits-1.  work is a writable array of at least
27 on return points to the next available entry's address. bits is the
28 requested root table index bits, and on return it is the actual root
29 table index bits. It will differ if the request is greater than the
32 int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work)
37 unsigned FAR *bits;
40 unsigned len; /* a code's length in bits */
43 unsigned root; /* number of index bits for root table */
44 unsigned curr; /* number of index bits for current table */
45 unsigned drop; /* code bits to drop for sub-table */
51 unsigned low; /* low bits for current root entry */
52 unsigned mask; /* mask for low root bits */
56 const unsigned short FAR *extra; /* extra bits table to use */
80 for codes with equal lengths. Then the code starts with all zero bits
83 increases. For the deflate format, these bits are stored backwards
113 root = *bits;
119 here.bits = (unsigned char)1;
123 *bits = 1;
151 filled is at next and has curr index bits. The code being used is huff
153 bits off of the bottom. For codes where len is less than drop + curr,
154 those top drop + curr - len bits are incremented through all values to
157 root is the number of index bits for the root table. When len exceeds
159 of the low root bits of huff. This is saved in low to check for when a
204 curr = root; /* current table index bits */
205 drop = 0; /* current bits to drop from code for index */
218 here.bits = (unsigned char)(len - drop);
232 /* replicate for those indices with low len bits equal to huff */
287 (*table)[low].bits = (unsigned char)root;
296 through high index bits. When the current sub-table is filled, the loop
300 here.bits = (unsigned char)(len - drop);
308 here.bits = (unsigned char)len;
328 *bits = root;