Lines Matching refs:MIN_MATCH
146 /* Note: the deflate() code requires max_lazy >= MIN_MATCH and max_chain >= 4
174 * input characters and the first MIN_MATCH bytes of str are valid
175 * (except for the last MIN_MATCH-1 bytes of the input file).
179 (UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
184 (UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
274 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH);
367 if (length < MIN_MATCH) return Z_OK;
382 for (n = 0; n <= length - MIN_MATCH; n++) {
1085 s->match_length = s->prev_length = MIN_MATCH-1;
1280 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
1305 if (len < MIN_MATCH) return MIN_MATCH - 1;
1430 if (s->lookahead >= MIN_MATCH) {
1433 #if MIN_MATCH != 3
1434 Call UPDATE_HASH() MIN_MATCH-3 more times
1437 /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
1576 * for the next match, plus MIN_MATCH bytes to insert the
1591 if (s->lookahead >= MIN_MATCH) {
1596 * At this point we have always match_length < MIN_MATCH
1606 if (s->match_length >= MIN_MATCH) {
1610 s->match_length - MIN_MATCH, bflush);
1619 s->lookahead >= MIN_MATCH) {
1625 * always MIN_MATCH bytes ahead.
1636 #if MIN_MATCH != 3
1637 Call UPDATE_HASH() MIN_MATCH-3 more times
1639 /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
1652 s->insert = s->strstart < MIN_MATCH-1 ? s->strstart : MIN_MATCH-1;
1679 * for the next match, plus MIN_MATCH bytes to insert the
1694 if (s->lookahead >= MIN_MATCH) {
1701 s->match_length = MIN_MATCH-1;
1714 || (s->match_length == MIN_MATCH &&
1719 /* If prev_match is also MIN_MATCH, match_start is garbage
1722 s->match_length = MIN_MATCH-1;
1728 if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) {
1729 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
1735 s->prev_length - MIN_MATCH, bflush);
1750 s->match_length = MIN_MATCH-1;
1783 s->insert = s->strstart < MIN_MATCH-1 ? s->strstart : MIN_MATCH-1;
1822 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
1839 /* Emit match if have run of MIN_MATCH or longer, else emit literal */
1840 if (s->match_length >= MIN_MATCH) {
1843 _tr_tally_dist(s, 1, s->match_length - MIN_MATCH, bflush);