Home | History | Annotate | Download | only in src

Lines Matching refs:scan

1153     register Bytef *scan = s->window + s->strstart; /* current string */
1171 register ush scan_start = *(ushf*)scan;
1172 register ush scan_end = *(ushf*)(scan+best_len-1);
1175 register Byte scan_end1 = scan[best_len-1];
1176 register Byte scan_end = scan[best_len];
1214 /* It is not necessary to compare scan[2] and match[2] since they are
1223 Assert(scan[2] == match[2], "scan[2]?");
1224 scan++, match++;
1226 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1227 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1228 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1229 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1230 scan < strend);
1233 /* Here, scan <= window+strstart+257 */
1234 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1235 if (*scan == *match) scan++;
1237 len = (MAX_MATCH - 1) - (int)(strend-scan);
1238 scan = strend - (MAX_MATCH-1);
1244 *match != *scan ||
1245 *++match != scan[1]) continue;
1249 * It is not necessary to compare scan[2] and match[2] since they
1253 scan += 2, match++;
1254 Assert(*scan == *match, "match[2]?");
1260 } while (*++scan == *++match && *++scan == *++match &&
1261 *++scan == *++match && *++scan == *++match &&
1262 *++scan == *++match && *++scan == *++match &&
1263 *++scan == *++match && *++scan == *++match &&
1264 scan < strend);
1266 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1268 len = MAX_MATCH - (int)(strend - scan);
1269 scan = strend - MAX_MATCH;
1278 scan_end = *(ushf*)(scan+best_len-1);
1280 scan_end1 = scan[best_len-1];
1281 scan_end = scan[best_len];
1301 register Bytef *scan = s->window + s->strstart; /* current string */
1319 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
1323 * It is not necessary to compare scan[2] and match[2] since they
1327 scan += 2, match += 2;
1328 Assert(*scan == *match, "match[2]?");
1334 } while (*++scan == *++match && *++scan == *++match &&
1335 *++scan == *++match && *++scan == *++match &&
1336 *++scan == *++match && *++scan == *++match &&
1337 *++scan == *++match && *++scan == *++match &&
1338 scan < strend);
1340 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1342 len = MAX_MATCH - (int)(strend - scan);
1867 Bytef *scan, *strend; /* scan goes up to strend for length of run */
1885 scan = s->window + s->strstart - 1;
1886 prev = *scan;
1887 if (prev == *++scan && prev == *++scan && prev == *++scan) {
1890 } while (prev == *++scan && prev == *++scan &&
1891 prev == *++scan && prev == *++scan &&
1892 prev == *++scan && prev == *++scan &&
1893 prev == *++scan && prev == *++scan &&
1894 scan < strend);
1895 s->match_length = MAX_MATCH - (int)(strend - scan);
1899 Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");