Lines Matching refs:strstart
361 if (s->strstart != 0) header |= PRESET_DICT; in zlib_deflate()
368 if (s->strstart != 0) { in zlib_deflate()
545 s->strstart = 0; in lm_init()
571 register Byte *scan = s->window + s->strstart; /* current string */ in longest_match()
576 IPos limit = s->strstart > (IPos)MAX_DIST(s) ? in longest_match()
577 s->strstart - (IPos)MAX_DIST(s) : NIL; in longest_match()
588 register Byte *strend = s->window + s->strstart + MAX_MATCH - 1; in longest_match()
592 register Byte *strend = s->window + s->strstart + MAX_MATCH; in longest_match()
611 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead"); in longest_match()
614 Assert(cur_match < s->strstart, "no future"); in longest_match()
754 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart); in fill_window()
757 if (more == 0 && s->strstart == 0 && s->lookahead == 0) { in fill_window()
769 } else if (s->strstart >= wsize+MAX_DIST(s)) { in fill_window()
774 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */ in fill_window()
816 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more); in fill_window()
821 s->ins_h = s->window[s->strstart]; in fill_window()
822 UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]); in fill_window()
842 (ulg)((long)s->strstart - s->block_start), \
844 s->block_start = s->strstart; \
884 Assert(s->strstart < s->w_size+MAX_DIST(s) || in deflate_stored()
894 s->strstart += s->lookahead; in deflate_stored()
899 if (s->strstart == 0 || (ulg)s->strstart >= max_start) { in deflate_stored()
901 s->lookahead = (uInt)(s->strstart - max_start); in deflate_stored()
902 s->strstart = (uInt)max_start; in deflate_stored()
908 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) { in deflate_stored()
949 INSERT_STRING(s, s->strstart, hash_head); in deflate_fast()
955 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) { in deflate_fast()
966 check_match(s, s->strstart, s->match_start, s->match_length); in deflate_fast()
968 bflush = zlib_tr_tally(s, s->strstart - s->match_start, in deflate_fast()
980 s->strstart++; in deflate_fast()
981 INSERT_STRING(s, s->strstart, hash_head); in deflate_fast()
986 s->strstart++; in deflate_fast()
988 s->strstart += s->match_length; in deflate_fast()
990 s->ins_h = s->window[s->strstart]; in deflate_fast()
991 UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]); in deflate_fast()
1001 Tracevv((stderr,"%c", s->window[s->strstart])); in deflate_fast()
1002 bflush = zlib_tr_tally (s, 0, s->window[s->strstart]); in deflate_fast()
1004 s->strstart++; in deflate_fast()
1044 INSERT_STRING(s, s->strstart, hash_head); in deflate_slow()
1053 s->strstart - hash_head <= MAX_DIST(s)) { in deflate_slow()
1065 s->strstart - s->match_start > TOO_FAR))) { in deflate_slow()
1077 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH; in deflate_slow()
1080 check_match(s, s->strstart-1, s->prev_match, s->prev_length); in deflate_slow()
1082 bflush = zlib_tr_tally(s, s->strstart -1 - s->prev_match, in deflate_slow()
1093 if (++s->strstart <= max_insert) { in deflate_slow()
1094 INSERT_STRING(s, s->strstart, hash_head); in deflate_slow()
1099 s->strstart++; in deflate_slow()
1108 Tracevv((stderr,"%c", s->window[s->strstart-1])); in deflate_slow()
1109 if (zlib_tr_tally (s, 0, s->window[s->strstart-1])) { in deflate_slow()
1112 s->strstart++; in deflate_slow()
1120 s->strstart++; in deflate_slow()
1126 Tracevv((stderr,"%c", s->window[s->strstart-1])); in deflate_slow()
1127 zlib_tr_tally (s, 0, s->window[s->strstart-1]); in deflate_slow()