Lines Matching refs:lookahead

814     if (strm->avail_in != 0 || s->lookahead != 0 ||
848 if (s->lookahead == 0) {
1036 s->lookahead = 0;
1104 if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;
1200 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1201 return s->lookahead;
1260 return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
1312 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1316 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1378 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1379 s->lookahead += n;
1382 if (s->lookahead >= MIN_MATCH) {
1393 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
1403 ulg curr = s->strstart + (ulg)(s->lookahead);
1477 if (s->lookahead <= 1) {
1483 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
1485 if (s->lookahead == 0) break; /* flush the current block */
1489 s->strstart += s->lookahead;
1490 s->lookahead = 0;
1496 s->lookahead = (uInt)(s->strstart - max_start);
1531 if (s->lookahead < MIN_LOOKAHEAD) {
1533 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1536 if (s->lookahead == 0) break; /* flush the current block */
1543 if (s->lookahead >= MIN_MATCH) {
1564 s->lookahead -= s->match_length;
1571 s->lookahead >= MIN_MATCH) {
1599 s->lookahead--;
1628 if (s->lookahead < MIN_LOOKAHEAD) {
1630 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1633 if (s->lookahead == 0) break; /* flush the current block */
1640 if (s->lookahead >= MIN_MATCH) {
1675 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
1688 s->lookahead -= s->prev_length-1;
1712 s->lookahead--;
1720 s->lookahead--;
1752 if (s->lookahead < MAX_MATCH) {
1754 if (s->lookahead < MAX_MATCH && flush == Z_NO_FLUSH) {
1757 if (s->lookahead == 0) break; /* flush the current block */
1762 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
1774 if (s->match_length > s->lookahead)
1775 s->match_length = s->lookahead;
1785 s->lookahead -= s->match_length;
1792 s->lookahead--;
1813 if (s->lookahead == 0) {
1815 if (s->lookahead == 0) {
1826 s->lookahead--;