Lines Matching refs:dist
294 unsigned dist; /* match distance */ in inflate_fast() local
365 dist = (unsigned)(here.val); in inflate_fast()
375 dist += (unsigned)hold & ((1U << op) - 1); in inflate_fast()
377 if (dist > dmax) { in inflate_fast()
385 Tracevv((stderr, "inflate: distance %u\n", dist)); in inflate_fast()
387 if (dist > op) { /* see if copy from window */ in inflate_fast()
388 op = dist - op; /* distance back in window */ in inflate_fast()
408 from = out - dist; in inflate_fast()
424 from = out - dist; /* rest from output */ in inflate_fast()
442 from = out - dist; /* rest from output */ in inflate_fast()
453 from = out - dist; /* rest from output */ in inflate_fast()
469 from = out - dist; /* copy direct from output */ in inflate_fast()
1030 unsigned dist; in updatewindow() local
1056 dist = state->wsize - state->wnext; in updatewindow()
1057 if (dist > copy) dist = copy; in updatewindow()
1058 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow()
1059 copy -= dist; in updatewindow()
1066 state->wnext += dist; in updatewindow()
1068 if (state->whave < state->wsize) state->whave += dist; in updatewindow()