Lines Matching defs:MAX_DIST
522 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
524 * distances are limited to MAX_DIST instead of WSIZE.
841 if (length > MAX_DIST(s)) {
842 length = MAX_DIST(s);
1262 * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
1279 IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
1280 s->strstart - (IPos)MAX_DIST(s) : NIL;
1470 } else if (s->strstart >= wsize+MAX_DIST(s)) {
1475 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1505 * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
1507 * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
1585 Assert(s->strstart < s->w_size+MAX_DIST(s) ||
1609 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) {
1655 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
1752 s->strstart - hash_head <= MAX_DIST(s)) {
2809 Assert((ush)dist < (ush)MAX_DIST(s) &&