Lines Matching refs:max

15                      Fix bug for initial root table size == max - 1
124 len: 1..max - 1 (max == maximum code length in bits)
131 len is less than max, since the code completes immediately when len == max.
135 We build the array with length max-1 lists for the len index, with syms-3
167 local int max; /* maximum allowed bit length for the codes */
176 #define INDEX(i,j,k) (((size_t)((i-1)>>1)*((i-2)>>1)+(j>>1)-1)*(max-1)+k-1)
196 len through max inclusive, coding syms symbols, with left bit patterns of
199 calculation. Uses the globals max and num. */
214 assert(syms > left && left > 0 && len < max);
231 most = (((code_t)left << (max - len)) - syms) /
232 (((code_t)1 << (max - len)) - 1);
317 the current sub-table is rem. Uses the globals max, code, root, large, and
341 printf("max %d: ", mem);
342 for (use = root + 1; use <= max; use++)
367 most = (((code_t)left << (max - len)) - syms) /
368 (((code_t)1 << (max - len)) - 1);
399 requires that maximum. Uses the globals max, root, and num. */
407 for (n = 0; n <= max; n++)
412 if (root < max) /* otherwise, there's only a base table */
419 if (root + 1 < max && num[index]) /* reachable node */
470 max = 15;
476 max = atoi(argv[3]);
479 if (argc > 4 || syms < 2 || root < 1 || max < 1) {
480 fputs("invalid arguments, need: [sym >= 2 [root >= 1 [max >= 1]]]\n",
486 if (max > syms - 1)
487 max = syms - 1;
495 if (max > n || syms - 2 >= (((code_t)0 - 1) >> (max - 1))) {
501 if (syms - 1 > ((code_t)1 << max) - 1) {
503 syms, max);
508 code = calloc(max + 1, sizeof(int));
516 if (syms == 2) /* iff max == 1 */
521 (size *= n, size > ((size_t)0 - 1) / (n = max - 1)) ||
543 if (max < syms - 1)
544 printf(" (%d-bit length limit)\n", max);
559 if (root > max) /* reduce root to max length */
560 root = max;