Lines Matching refs:lookahead
828 if (strm->avail_in != 0 || s->lookahead != 0 ||
862 if (s->lookahead == 0) {
1050 s->lookahead = 0;
1118 if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;
1214 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1215 return s->lookahead;
1274 return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
1326 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1330 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1392 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1393 s->lookahead += n;
1396 if (s->lookahead >= MIN_MATCH) {
1407 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
1417 ulg curr = s->strstart + (ulg)(s->lookahead);
1491 if (s->lookahead <= 1) {
1497 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
1499 if (s->lookahead == 0) break; /* flush the current block */
1503 s->strstart += s->lookahead;
1504 s->lookahead = 0;
1510 s->lookahead = (uInt)(s->strstart - max_start);
1545 if (s->lookahead < MIN_LOOKAHEAD) {
1547 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1550 if (s->lookahead == 0) break; /* flush the current block */
1557 if (s->lookahead >= MIN_MATCH) {
1578 s->lookahead -= s->match_length;
1585 s->lookahead >= MIN_MATCH) {
1613 s->lookahead--;
1642 if (s->lookahead < MIN_LOOKAHEAD) {
1644 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1647 if (s->lookahead == 0) break; /* flush the current block */
1654 if (s->lookahead >= MIN_MATCH) {
1689 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
1702 s->lookahead -= s->prev_length-1;
1726 s->lookahead--;
1734 s->lookahead--;
1766 if (s->lookahead < MAX_MATCH) {
1768 if (s->lookahead < MAX_MATCH && flush == Z_NO_FLUSH) {
1771 if (s->lookahead == 0) break; /* flush the current block */
1776 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
1788 if (s->match_length > s->lookahead)
1789 s->match_length = s->lookahead;
1799 s->lookahead -= s->match_length;
1806 s->lookahead--;
1827 if (s->lookahead == 0) {
1829 if (s->lookahead == 0) {
1840 s->lookahead--;