Home | History | Annotate | Download | only in ZLib

Lines Matching refs:len

40     unsigned len;               /* a code's length in bits */
107 for (len = 0; len <= MAXBITS; len++)
108 count[len] = 0;
132 for (len = 1; len <= MAXBITS; len++) {
134 left -= count[len];
142 for (len = 1; len < MAXBITS; len++)
143 offs[len + 1] = offs[len] + count[len];
152 with length len. That code is converted to an index by dropping drop
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
200 len = min; /* starting code length */
204 low = (unsigned)(-1); /* trigger new sub-table when len > root */
216 here.bits = (unsigned char)(len - drop);
230 /* replicate for those indices with low len bits equal to huff */
231 incr = 1U << (len - drop);
239 /* backwards increment the len-bit code huff */
240 incr = 1U << (len - 1);
250 /* go to next symbol, update count, len */
252 if (--(count[len]) == 0) {
253 if (len == max) break;
254 len = lens[work[sym]];
258 if (len > root && (huff & mask) != low) {
267 curr = len - drop;
295 here.bits = (unsigned char)(len - drop);