Home | History | Annotate | Download | only in zlib

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)]), \
279 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH);
330 if (length < MIN_MATCH) return Z_OK;
345 for (n = 0; n <= length - MIN_MATCH; n++) {
1039 s->match_length = s->prev_length = MIN_MATCH-1;
1234 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
1259 if (len < MIN_MATCH) return MIN_MATCH - 1;
1384 if (s->lookahead >= MIN_MATCH) {
1387 #if MIN_MATCH != 3
1388 Call UPDATE_HASH() MIN_MATCH-3 more times
1391 /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
1530 * for the next match, plus MIN_MATCH bytes to insert the
1545 if (s->lookahead >= MIN_MATCH) {
1550 * At this point we have always match_length < MIN_MATCH
1560 if (s->match_length >= MIN_MATCH) {
1564 s->match_length - MIN_MATCH, bflush);
1573 s->lookahead >= MIN_MATCH) {
1579 * always MIN_MATCH bytes ahead.
1590 #if MIN_MATCH != 3
1591 Call UPDATE_HASH() MIN_MATCH-3 more times
1593 /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
1627 * for the next match, plus MIN_MATCH bytes to insert the
1642 if (s->lookahead >= MIN_MATCH) {
1649 s->match_length = MIN_MATCH-1;
1662 || (s->match_length == MIN_MATCH &&
1667 /* If prev_match is also MIN_MATCH, match_start is garbage
1670 s->match_length = MIN_MATCH-1;
1676 if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) {
1677 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
1683 s->prev_length - MIN_MATCH, bflush);
1698 s->match_length = MIN_MATCH-1;
1764 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
1781 /* Emit match if have run of MIN_MATCH or longer, else emit literal */
1782 if (s->match_length >= MIN_MATCH) {
1785 _tr_tally_dist(s, 1, s->match_length - MIN_MATCH, bflush);