Lines Matching refs:cur_match_len

1599       mz_uint cur_match_dist, cur_match_len = 1;  in tdefl_compress_fast()  local
1613cur_match_len = ((mz_uint)(p - (const mz_uint16 *)pCur_dict) * 2) + (mz_uint)(*(const mz_uint8 *)p… in tdefl_compress_fast()
1615 cur_match_len = cur_match_dist ? TDEFL_MAX_MATCH_LEN : 0; in tdefl_compress_fast()
1617 …if ((cur_match_len < TDEFL_MIN_MATCH_LEN) || ((cur_match_len == TDEFL_MIN_MATCH_LEN) && (cur_match… in tdefl_compress_fast()
1619 cur_match_len = 1; in tdefl_compress_fast()
1627 cur_match_len = MZ_MIN(cur_match_len, lookahead_size); in tdefl_compress_fast()
1629 …MZ_ASSERT((cur_match_len >= TDEFL_MIN_MATCH_LEN) && (cur_match_dist >= 1) && (cur_match_dist <= TD… in tdefl_compress_fast()
1633 pLZ_code_buf[0] = (mz_uint8)(cur_match_len - TDEFL_MIN_MATCH_LEN); in tdefl_compress_fast()
1642 d->m_huff_count[0][s_tdefl_len_sym[cur_match_len - TDEFL_MIN_MATCH_LEN]]++; in tdefl_compress_fast()
1654 total_lz_bytes += cur_match_len; in tdefl_compress_fast()
1655 lookahead_pos += cur_match_len; in tdefl_compress_fast()
1656 dict_size = MZ_MIN(dict_size + cur_match_len, TDEFL_LZ_DICT_SIZE); in tdefl_compress_fast()
1657 cur_pos = (cur_pos + cur_match_len) & TDEFL_LZ_DICT_SIZE_MASK; in tdefl_compress_fast()
1658 MZ_ASSERT(lookahead_size >= cur_match_len); in tdefl_compress_fast()
1659 lookahead_size -= cur_match_len; in tdefl_compress_fast()
1743 mz_uint len_to_move, cur_match_dist, cur_match_len, cur_pos; in tdefl_compress_normal() local
1784 …len_to_move = 1; cur_match_dist = 0; cur_match_len = d->m_saved_match_len ? d->m_saved_match_len :… in tdefl_compress_normal()
1790cur_match_len = 0; while (cur_match_len < d->m_lookahead_size) { if (d->m_dict[cur_pos + cur_match… in tdefl_compress_normal()
1791 if (cur_match_len < TDEFL_MIN_MATCH_LEN) cur_match_len = 0; else cur_match_dist = 1; in tdefl_compress_normal()
1796 …match(d, d->m_lookahead_pos, d->m_dict_size, d->m_lookahead_size, &cur_match_dist, &cur_match_len); in tdefl_compress_normal()
1798cur_match_len == TDEFL_MIN_MATCH_LEN) && (cur_match_dist >= 8U*1024U)) || (cur_pos == cur_match_di… in tdefl_compress_normal()
1800 cur_match_dist = cur_match_len = 0; in tdefl_compress_normal()
1804 if (cur_match_len > d->m_saved_match_len) in tdefl_compress_normal()
1807 if (cur_match_len >= 128) in tdefl_compress_normal()
1809 tdefl_record_match(d, cur_match_len, cur_match_dist); in tdefl_compress_normal()
1810 d->m_saved_match_len = 0; len_to_move = cur_match_len; in tdefl_compress_normal()
1814 …= d->m_dict[cur_pos]; d->m_saved_match_dist = cur_match_dist; d->m_saved_match_len = cur_match_len; in tdefl_compress_normal()
1825 else if ((d->m_greedy_parsing) || (d->m_flags & TDEFL_RLE_MATCHES) || (cur_match_len >= 128)) in tdefl_compress_normal()
1827 tdefl_record_match(d, cur_match_len, cur_match_dist); in tdefl_compress_normal()
1828 len_to_move = cur_match_len; in tdefl_compress_normal()
1832 …eof(d->m_dict) - 1)]; d->m_saved_match_dist = cur_match_dist; d->m_saved_match_len = cur_match_len; in tdefl_compress_normal()