Lines Matching defs:lens
38 The code lengths are lens[0..codes-1]. The result starts at *table,
40 lens shorts, which is used as a work area. type is the type of code
41 to be generated, CODES, LENS, or DISTS. On return, zero is success,
48 int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
88 code lengths are lens[0..codes-1]. Each length corresponds to the
100 lens[] are in the range 0..MAXBITS. The caller must assure this.
117 /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */
121 count[lens[sym]]++;
158 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
180 provided *table space. It is checked for LENS and DIST tables against
196 case LENS:
218 if ((type == LENS && used > ENOUGH_LENS) ||
263 len = lens[work[sym]];
287 if ((type == LENS && used > ENOUGH_LENS) ||
332 unsigned short lens[288], work[288];
336 while (sym < 144) lens[sym++] = 8;
337 while (sym < 256) lens[sym++] = 9;
338 while (sym < 280) lens[sym++] = 7;
339 while (sym < 288) lens[sym++] = 8;
343 inflate_table(LENS, lens, 288, &(next), &(bits), work);
347 while (sym < 32) lens[sym++] = 5;
350 inflate_table(DISTS, lens, 32, &(next), &(bits), work);