Lines Matching refs:dist
1387 …mz_uint dist, pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK, match_len = *pMatch_len, probe_pos = … in tdefl_find_match() local
1402 if ((!next_probe_pos) || ((dist = (mz_uint16)(lookahead_pos - next_probe_pos)) > max_dist)) \ in tdefl_find_match()
1411 if (!dist) in tdefl_find_match()
1424 *pMatch_dist = dist; in tdefl_find_match()
1430 *pMatch_dist = dist; in tdefl_find_match()
1440 …mz_uint dist, pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK, match_len = *pMatch_len, probe_pos = … in tdefl_find_match() local
1455 if ((!next_probe_pos) || ((dist = (mz_uint16)(lookahead_pos - next_probe_pos)) > max_dist)) \ in tdefl_find_match()
1464 if (!dist) in tdefl_find_match()
1473 *pMatch_dist = dist; in tdefl_find_match()
2391 mz_uint32 num_bits, dist, counter, num_extra; in tinfl_decompress() local
2406 dist = r->m_dist; in tinfl_decompress()
2412 bit_buf = num_bits = dist = counter = num_extra = r->m_zhdr0 = r->m_zhdr1 = 0; in tinfl_decompress()
2447 TINFL_GET_BITS(51, dist, 8); in tinfl_decompress()
2452 *pOut_buf_cur++ = (mz_uint8)dist; in tinfl_decompress()
2578 TINFL_HUFF_DECODE(16, dist, &r->m_tables[2]); in tinfl_decompress()
2579 if (dist < 16) in tinfl_decompress()
2581 r->m_len_codes[counter++] = (mz_uint8)dist; in tinfl_decompress()
2584 if ((dist == 16) && (!counter)) in tinfl_decompress()
2588 num_extra = "\02\03\07"[dist - 16]; in tinfl_decompress()
2590 s += "\03\03\013"[dist - 16]; in tinfl_decompress()
2591 … TINFL_MEMSET(r->m_len_codes + counter, (dist == 16) ? r->m_len_codes[counter - 1] : 0, s); in tinfl_decompress()
2697 TINFL_HUFF_DECODE(26, dist, &r->m_tables[1]); in tinfl_decompress()
2698 num_extra = s_dist_extra[dist]; in tinfl_decompress()
2699 dist = s_dist_base[dist]; in tinfl_decompress()
2704 dist += extra_bits; in tinfl_decompress()
2708 … if ((dist > dist_from_out_buf_start) && (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF)) in tinfl_decompress()
2713 pSrc = pOut_buf_start + ((dist_from_out_buf_start - dist) & out_buf_size_mask); in tinfl_decompress()
2723 … *pOut_buf_cur++ = pOut_buf_start[(dist_from_out_buf_start++ - dist) & out_buf_size_mask]; in tinfl_decompress()
2728 else if ((counter >= 9) && (counter <= dist)) in tinfl_decompress()
2815 r->m_dist = dist; in tinfl_decompress()