Lines Matching defs:MAX_DIST
549 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
551 * distances are limited to MAX_DIST instead of WSIZE.
916 if (length > MAX_DIST(s)) {
917 length = MAX_DIST(s);
1342 * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
1359 IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
1360 s->strstart - (IPos)MAX_DIST(s) : NIL;
1607 } else if (s->strstart >= wsize+MAX_DIST(s)) {
1611 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1643 * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
1645 * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
1720 Assert(s->strstart < s->w_size+MAX_DIST(s) ||
1744 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) {
1788 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
1886 s->strstart - hash_head <= MAX_DIST(s)) {
3130 Assert((ush)dist < (ush)MAX_DIST(s) &&