Lines Matching refs:symbol

208     short *symbol;      /* canonically ordered symbols */  member
248 return h->symbol[index + (code - first)]; in decode()
287 return h->symbol[index + (code - first)]; in decode()
342 int symbol; /* current symbol when stepping through length[] */ in construct() local
350 for (symbol = 0; symbol < n; symbol++) in construct()
351 (h->count[length[symbol]])++; /* assumes lengths are within bounds */ in construct()
373 for (symbol = 0; symbol < n; symbol++) in construct()
374 if (length[symbol] != 0) in construct()
375 h->symbol[offs[length[symbol]]++] = symbol; in construct()
440 int symbol; /* decoded symbol */ in codes() local
460 symbol = decode(s, lencode); in codes()
461 if (symbol < 0) in codes()
462 return symbol; /* invalid symbol */ in codes()
463 if (symbol < 256) { /* literal: symbol is the byte */ in codes()
468 s->out[s->outcnt] = symbol; in codes()
472 else if (symbol > 256) { /* length */ in codes()
474 symbol -= 257; in codes()
475 if (symbol >= 29) in codes()
477 len = lens[symbol] + bits(s, lext[symbol]); in codes()
480 symbol = decode(s, distcode); in codes()
481 if (symbol < 0) in codes()
482 return symbol; /* invalid symbol */ in codes()
483 dist = dists[symbol] + bits(s, dext[symbol]); in codes()
506 } while (symbol != 256); /* end of block symbol */ in codes()
545 int symbol; in fixed() local
550 lencode.symbol = lensym; in fixed()
552 distcode.symbol = distsym; in fixed()
555 for (symbol = 0; symbol < 144; symbol++) in fixed()
556 lengths[symbol] = 8; in fixed()
557 for (; symbol < 256; symbol++) in fixed()
558 lengths[symbol] = 9; in fixed()
559 for (; symbol < 280; symbol++) in fixed()
560 lengths[symbol] = 7; in fixed()
561 for (; symbol < FIXLCODES; symbol++) in fixed()
562 lengths[symbol] = 8; in fixed()
566 for (symbol = 0; symbol < MAXDCODES; symbol++) in fixed()
567 lengths[symbol] = 5; in fixed()
679 lencode.symbol = lensym; in dynamic()
681 distcode.symbol = distsym; in dynamic()
704 int symbol; /* decoded value */ in dynamic() local
707 symbol = decode(s, &lencode); in dynamic()
708 if (symbol < 0) in dynamic()
709 return symbol; /* invalid symbol */ in dynamic()
710 if (symbol < 16) /* length in 0..15 */ in dynamic()
711 lengths[index++] = symbol; in dynamic()
714 if (symbol == 16) { /* repeat last length 3..6 times */ in dynamic()
718 symbol = 3 + bits(s, 2); in dynamic()
720 else if (symbol == 17) /* repeat zero 3..10 times */ in dynamic()
721 symbol = 3 + bits(s, 3); in dynamic()
723 symbol = 11 + bits(s, 7); in dynamic()
724 if (index + symbol > nlen + ndist) in dynamic()
726 while (symbol--) /* repeat last or zero symbol times */ in dynamic()