Lines Matching refs:scan
1066 register Bytef *scan = s->window + s->strstart; /* current string */
1084 register ush scan_start = *(ushf*)scan;
1085 register ush scan_end = *(ushf*)(scan+best_len-1);
1088 register Byte scan_end1 = scan[best_len-1];
1089 register Byte scan_end = scan[best_len];
1127 /* It is not necessary to compare scan[2] and match[2] since they are
1136 Assert(scan[2] == match[2], "scan[2]?");
1137 scan++, match++;
1139 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1140 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1141 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1142 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1143 scan < strend);
1146 /* Here, scan <= window+strstart+257 */
1147 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1148 if (*scan == *match) scan++;
1150 len = (MAX_MATCH - 1) - (int)(strend-scan);
1151 scan = strend - (MAX_MATCH-1);
1157 *match != *scan ||
1158 *++match != scan[1]) continue;
1162 * It is not necessary to compare scan[2] and match[2] since they
1166 scan += 2, match++;
1167 Assert(*scan == *match, "match[2]?");
1173 } while (*++scan == *++match && *++scan == *++match &&
1174 *++scan == *++match && *++scan == *++match &&
1175 *++scan == *++match && *++scan == *++match &&
1176 *++scan == *++match && *++scan == *++match &&
1177 scan < strend);
1179 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1181 len = MAX_MATCH - (int)(strend - scan);
1182 scan = strend - MAX_MATCH;
1191 scan_end = *(ushf*)(scan+best_len-1);
1193 scan_end1 = scan[best_len-1];
1194 scan_end = scan[best_len];
1214 register Bytef *scan = s->window + s->strstart; /* current string */
1232 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
1236 * It is not necessary to compare scan[2] and match[2] since they
1240 scan += 2, match += 2;
1241 Assert(*scan == *match, "match[2]?");
1247 } while (*++scan == *++match && *++scan == *++match &&
1248 *++scan == *++match && *++scan == *++match &&
1249 *++scan == *++match && *++scan == *++match &&
1250 *++scan == *++match && *++scan == *++match &&
1251 scan < strend);
1253 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1255 len = MAX_MATCH - (int)(strend - scan);
1745 Bytef *scan, *strend; /* scan goes up to strend for length of run */
1763 scan = s->window + s->strstart - 1;
1764 prev = *scan;
1765 if (prev == *++scan && prev == *++scan && prev == *++scan) {
1768 scan && prev == *++scan &&
1769 prev == *++scan && prev == *++scan &&
1770 prev == *++scan && prev == *++scan &&
1771 prev == *++scan && prev == *++scan &&
1772 scan < strend);
1773 s->match_length = MAX_MATCH - (int)(strend - scan);