• Home
  • Raw
  • Download

Lines Matching refs:lookahead

786     if (strm->avail_in != 0 || s->lookahead != 0 ||
1002 s->lookahead = 0;
1070 if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;
1166 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1167 return s->lookahead;
1225 return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
1275 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);
1279 if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1342 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
1343 s->lookahead += n;
1346 if (s->lookahead >= MIN_MATCH) {
1357 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
1407 if (s->lookahead <= 1) {
1413 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
1415 if (s->lookahead == 0) break; /* flush the current block */
1419 s->strstart += s->lookahead;
1420 s->lookahead = 0;
1426 s->lookahead = (uInt)(s->strstart - max_start);
1461 if (s->lookahead < MIN_LOOKAHEAD) {
1463 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1466 if (s->lookahead == 0) break; /* flush the current block */
1472 if (s->lookahead >= MIN_MATCH) {
1504 s->lookahead -= s->match_length;
1511 s->lookahead >= MIN_MATCH) {
1539 s->lookahead--;
1568 if (s->lookahead < MIN_LOOKAHEAD) {
1570 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1573 if (s->lookahead == 0) break; /* flush the current block */
1579 if (s->lookahead >= MIN_MATCH) {
1618 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
1631 s->lookahead -= s->prev_length-1;
1655 s->lookahead--;
1663 s->lookahead--;
1698 if (s->lookahead < MAX_MATCH) {
1700 if (s->lookahead < MAX_MATCH && flush == Z_NO_FLUSH) {
1703 if (s->lookahead == 0) break; /* flush the current block */
1709 max = s->lookahead < MAX_MATCH ? s->lookahead : MAX_MATCH;
1722 s->lookahead -= run;
1728 s->lookahead--;