Lines Matching defs:MAX_DIST
533 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
535 * distances are limited to MAX_DIST instead of WSIZE.
852 if (length > MAX_DIST(s)) {
853 length = MAX_DIST(s);
1273 * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
1290 IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
1291 s->strstart - (IPos)MAX_DIST(s) : NIL;
1481 } else if (s->strstart >= wsize+MAX_DIST(s)) {
1486 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1516 * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
1518 * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
1596 Assert(s->strstart < s->w_size+MAX_DIST(s) ||
1620 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) {
1666 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
1763 s->strstart - hash_head <= MAX_DIST(s)) {
2818 Assert((ush)dist < (ush)MAX_DIST(s) &&