Lines Matching refs:lookahead
792 if (strm->avail_in != 0 || s->lookahead != 0 ||
1008 s->lookahead = 0;
1076 if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;
1172 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1173 return s->lookahead;
1231 return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
1281 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1285 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1348 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1349 s->lookahead += n;
1352 if (s->lookahead >= MIN_MATCH) {
1363 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
1413 if (s->lookahead <= 1) {
1419 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
1421 if (s->lookahead == 0) break; /* flush the current block */
1425 s->strstart += s->lookahead;
1426 s->lookahead = 0;
1432 s->lookahead = (uInt)(s->strstart - max_start);
1467 if (s->lookahead < MIN_LOOKAHEAD) {
1469 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1472 if (s->lookahead == 0) break; /* flush the current block */
1478 if (s->lookahead >= MIN_MATCH) {
1510 s->lookahead -= s->match_length;
1517 s->lookahead >= MIN_MATCH) {
1545 s->lookahead--;
1574 if (s->lookahead < MIN_LOOKAHEAD) {
1576 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1579 if (s->lookahead == 0) break; /* flush the current block */
1585 if (s->lookahead >= MIN_MATCH) {
1624 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
1637 s->lookahead -= s->prev_length-1;
1661 s->lookahead--;
1669 s->lookahead--;
1704 if (s->lookahead < MAX_MATCH) {
1706 if (s->lookahead < MAX_MATCH && flush == Z_NO_FLUSH) {
1709 if (s->lookahead == 0) break; /* flush the current block */
1715 max = s->lookahead < MAX_MATCH ? s->lookahead : MAX_MATCH;
1728 s->lookahead -= run;
1734 s->lookahead--;