Lines Matching refs:symbol
144 int symbol, length, dist, i; in decompress_huffman() local
147 if ((symbol = read_symbol(stream, lengths)) < 0) return; in decompress_huffman()
148 if (symbol < 256) { in decompress_huffman()
149 *(dest++) = symbol; /* symbol is a literal */ in decompress_huffman()
151 } else if (symbol > 256) { in decompress_huffman()
154 if (symbol < 265) length = symbol - 254; in decompress_huffman()
155 else if (symbol == 285) length = 258; in decompress_huffman()
157 length = pull_bits(stream, (symbol - 261) >> 2); in decompress_huffman()
158 length += (4 << ((symbol - 261) >> 2)) + 3; in decompress_huffman()
159 length += ((symbol - 1) % 4) << in decompress_huffman()
160 ((symbol - 261) >> 2); in decompress_huffman()
164 if ((symbol = read_symbol(stream, distance)) < 0) in decompress_huffman()
166 if (symbol < 4) dist = symbol + 1; in decompress_huffman()
168 dist = pull_bits(stream, (symbol - 2) >> 1); in decompress_huffman()
169 dist += (2 << ((symbol - 2) >> 1)) + 1; in decompress_huffman()
170 dist += (symbol % 2) << ((symbol - 2) >> 1); in decompress_huffman()
178 } while (symbol != 256); /* 256 is the end of the data block */ in decompress_huffman()
231 int length, curr_code, symbol, i, last_code; in decompress_dynamic() local
253 if ((symbol = read_symbol(stream, codes)) < 0) return; in decompress_dynamic()
254 if (symbol == 0) { in decompress_dynamic()
257 } else if (symbol < 16) { /* Literal length */ in decompress_dynamic()
258 lengths->lengths[curr_code] = last_code = symbol; in decompress_dynamic()
259 lengths->count[symbol]++; in decompress_dynamic()
261 } else if (symbol == 16) { /* repeat the last symbol 3 - 6 in decompress_dynamic()
274 } else if (symbol == 17) { /* repeat a bit length 0 */ in decompress_dynamic()
288 if ((symbol = read_symbol(stream, codes)) < 0) return; in decompress_dynamic()
289 if (symbol == 0) { in decompress_dynamic()
292 } else if (symbol < 16) { in decompress_dynamic()
293 distance->lengths[curr_code] = last_code = symbol; in decompress_dynamic()
294 distance->count[symbol]++; in decompress_dynamic()
296 } else if (symbol == 16) { in decompress_dynamic()
303 } else if (symbol == 17) { in decompress_dynamic()