Lines Matching defs:table

22    The code lengths are lens[0..codes-1].  The result starts at *table,
26 -1 is an invalid code, and +1 means that ENOUGH isn't enough. table
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
36 code FAR * FAR *table,
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 */
47 unsigned used; /* code entries in table used */
53 code here; /* table entry for duplication */
54 code FAR *next; /* next available space in table */
55 const unsigned short FAR *base; /* base value table to use */
56 const unsigned short FAR *extra; /* extra bits table to use */
59 unsigned short offs[MAXBITS+1]; /* offsets in table for each length */
94 creating from that a table of starting indices for each length in the
95 sorted table, and then entering the symbols in order in the sorted
96 table. The sorted table is work[], with that space being provided by
102 at length counts to determine sub-table sizes when building the
121 *(*table)++ = here; /* make a table to force an error */
122 *(*table)++ = here;
140 /* generate offsets into symbol table for each length for sorting */
150 Create and fill in decoding tables. In this loop, the table being
155 fill the table with replicated entries.
157 root is the number of index bits for the root table. When len exceeds
160 new sub-table should be started. drop is zero when the root table is
163 When a new sub-table is needed, it is necessary to look ahead in the
164 code lengths to determine what size sub-table is needed. The length
168 used keeps track of how many table entries have been allocated from the
169 provided *table space. It is checked for LENS and DIST tables against
171 the initial root table size constants. See the comments in inftrees.h
201 next = *table; /* current table to fill in */
202 curr = root; /* current table index bits */
204 low = (unsigned)(-1); /* trigger new sub-table when len > root */
205 used = 1U << root; /* use root table entries */
208 /* check available table space */
213 /* process all codes and make table entries */
215 /* create table entry */
233 min = fill; /* save offset to next table */
257 /* create new sub-table if needed */
263 /* increment past last table */
266 /* determine length of next table */
282 /* point entry in root table to sub-table */
284 (*table)[low].op = (unsigned char)curr;
285 (*table)[low].bits = (unsigned char)root;
286 (*table)[low].val = (unsigned short)(next - *table);
290 /* fill in remaining table entry if code is incomplete (guaranteed to have
301 *table += used;