Lines Matching refs:lookahead
429 if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
455 while (s->lookahead >= MIN_MATCH) {
457 n = s->lookahead - (MIN_MATCH-1);
467 s->lookahead = MIN_MATCH-1;
470 s->strstart += s->lookahead;
472 s->insert = s->lookahead;
473 s->lookahead = 0;
494 len = s->strstart + s->lookahead;
498 zmemcpy(dictionary, s->window + s->strstart + s->lookahead - len, len);
634 if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead)
1037 if (strm->avail_in != 0 || s->lookahead != 0 ||
1072 if (s->lookahead == 0) {
1248 s->lookahead = 0;
1317 if ((uInt)nice_match > s->lookahead) nice_match = (int)s->lookahead;
1413 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1414 return s->lookahead;
1473 return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
1527 Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
1530 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1534 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1574 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1575 s->lookahead += n;
1578 if (s->lookahead + s->insert >= MIN_MATCH) {
1593 if (s->lookahead + s->insert < MIN_MATCH)
1601 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
1611 ulg curr = s->strstart + (ulg)(s->lookahead);
1883 if (s->lookahead < MIN_LOOKAHEAD) {
1885 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1888 if (s->lookahead == 0) break; /* flush the current block */
1895 if (s->lookahead >= MIN_MATCH) {
1916 s->lookahead -= s->match_length;
1923 s->lookahead >= MIN_MATCH) {
1951 s->lookahead--;
1986 if (s->lookahead < MIN_LOOKAHEAD) {
1988 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1991 if (s->lookahead == 0) break; /* flush the current block */
1998 if (s->lookahead >= MIN_MATCH) {
2033 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
2046 s->lookahead -= s->prev_length-1;
2070 s->lookahead--;
2078 s->lookahead--;
2116 if (s->lookahead <= MAX_MATCH) {
2118 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
2121 if (s->lookahead == 0) break; /* flush the current block */
2126 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
2138 if (s->match_length > s->lookahead)
2139 s->match_length = s->lookahead;
2150 s->lookahead -= s->match_length;
2157 s->lookahead--;
2184 if (s->lookahead == 0) {
2186 if (s->lookahead == 0) {
2197 s->lookahead--;