Lines Matching refs:strstart
281 s->strstart = length;
444 if (s->strstart != 0) header |= PRESET_DICT; in zlib_deflate()
451 if (s->strstart != 0) { in zlib_deflate()
677 s->strstart = 0; in lm_init()
703 register Byte *scan = s->window + s->strstart; /* current string */ in longest_match()
708 IPos limit = s->strstart > (IPos)MAX_DIST(s) ? in longest_match()
709 s->strstart - (IPos)MAX_DIST(s) : NIL; in longest_match()
720 register Byte *strend = s->window + s->strstart + MAX_MATCH - 1; in longest_match()
724 register Byte *strend = s->window + s->strstart + MAX_MATCH; in longest_match()
743 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead"); in longest_match()
746 Assert(cur_match < s->strstart, "no future"); in longest_match()
886 more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart); in fill_window()
889 if (more == 0 && s->strstart == 0 && s->lookahead == 0) { in fill_window()
901 } else if (s->strstart >= wsize+MAX_DIST(s)) { in fill_window()
906 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */ in fill_window()
948 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more); in fill_window()
953 s->ins_h = s->window[s->strstart]; in fill_window()
954 UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]); in fill_window()
974 (ulg)((long)s->strstart - s->block_start), \
976 s->block_start = s->strstart; \
1016 Assert(s->strstart < s->w_size+MAX_DIST(s) || in deflate_stored()
1026 s->strstart += s->lookahead; in deflate_stored()
1031 if (s->strstart == 0 || (ulg)s->strstart >= max_start) { in deflate_stored()
1033 s->lookahead = (uInt)(s->strstart - max_start); in deflate_stored()
1034 s->strstart = (uInt)max_start; in deflate_stored()
1040 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) { in deflate_stored()
1081 INSERT_STRING(s, s->strstart, hash_head); in deflate_fast()
1087 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) { in deflate_fast()
1098 check_match(s, s->strstart, s->match_start, s->match_length); in deflate_fast()
1100 bflush = zlib_tr_tally(s, s->strstart - s->match_start, in deflate_fast()
1112 s->strstart++; in deflate_fast()
1113 INSERT_STRING(s, s->strstart, hash_head); in deflate_fast()
1118 s->strstart++; in deflate_fast()
1120 s->strstart += s->match_length; in deflate_fast()
1122 s->ins_h = s->window[s->strstart]; in deflate_fast()
1123 UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]); in deflate_fast()
1133 Tracevv((stderr,"%c", s->window[s->strstart])); in deflate_fast()
1134 bflush = zlib_tr_tally (s, 0, s->window[s->strstart]); in deflate_fast()
1136 s->strstart++; in deflate_fast()
1176 INSERT_STRING(s, s->strstart, hash_head); in deflate_slow()
1185 s->strstart - hash_head <= MAX_DIST(s)) { in deflate_slow()
1197 s->strstart - s->match_start > TOO_FAR))) { in deflate_slow()
1209 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH; in deflate_slow()
1212 check_match(s, s->strstart-1, s->prev_match, s->prev_length); in deflate_slow()
1214 bflush = zlib_tr_tally(s, s->strstart -1 - s->prev_match, in deflate_slow()
1225 if (++s->strstart <= max_insert) { in deflate_slow()
1226 INSERT_STRING(s, s->strstart, hash_head); in deflate_slow()
1231 s->strstart++; in deflate_slow()
1240 Tracevv((stderr,"%c", s->window[s->strstart-1])); in deflate_slow()
1241 if (zlib_tr_tally (s, 0, s->window[s->strstart-1])) { in deflate_slow()
1244 s->strstart++; in deflate_slow()
1252 s->strstart++; in deflate_slow()
1258 Tracevv((stderr,"%c", s->window[s->strstart-1])); in deflate_slow()
1259 zlib_tr_tally (s, 0, s->window[s->strstart-1]); in deflate_slow()