Lines Matching refs:lookahead
431 if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
457 while (s->lookahead >= MIN_MATCH) {
459 n = s->lookahead - (MIN_MATCH-1);
469 s->lookahead = MIN_MATCH-1;
472 s->strstart += s->lookahead;
474 s->insert = s->lookahead;
475 s->lookahead = 0;
496 len = s->strstart + s->lookahead;
500 zmemcpy(dictionary, s->window + s->strstart + s->lookahead - len, len);
636 if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead)
1039 if (strm->avail_in != 0 || s->lookahead != 0 ||
1074 if (s->lookahead == 0) {
1250 s->lookahead = 0;
1319 if ((uInt)nice_match > s->lookahead) nice_match = (int)s->lookahead;
1415 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1416 return s->lookahead;
1475 return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
1529 Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
1532 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1536 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1576 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1577 s->lookahead += n;
1580 if (s->lookahead + s->insert >= MIN_MATCH) {
1595 if (s->lookahead + s->insert < MIN_MATCH)
1603 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
1613 ulg curr = s->strstart + (ulg)(s->lookahead);
1885 if (s->lookahead < MIN_LOOKAHEAD) {
1887 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1890 if (s->lookahead == 0) break; /* flush the current block */
1897 if (s->lookahead >= MIN_MATCH) {
1918 s->lookahead -= s->match_length;
1925 s->lookahead >= MIN_MATCH) {
1953 s->lookahead--;
1988 if (s->lookahead < MIN_LOOKAHEAD) {
1990 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1993 if (s->lookahead == 0) break; /* flush the current block */
2000 if (s->lookahead >= MIN_MATCH) {
2035 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
2048 s->lookahead -= s->prev_length-1;
2072 s->lookahead--;
2080 s->lookahead--;
2118 if (s->lookahead <= MAX_MATCH) {
2120 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
2123 if (s->lookahead == 0) break; /* flush the current block */
2128 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
2140 if (s->match_length > s->lookahead)
2141 s->match_length = s->lookahead;
2152 s->lookahead -= s->match_length;
2159 s->lookahead--;
2186 if (s->lookahead == 0) {
2188 if (s->lookahead == 0) {
2199 s->lookahead--;