Lines Matching refs:scan
1241 register Bytef *scan = s->window + s->strstart; /* current string */
1259 register ush scan_start = *(ushf*)scan;
1260 register ush scan_end = *(ushf*)(scan+best_len-1);
1263 register Byte scan_end1 = scan[best_len-1];
1264 register Byte scan_end = scan[best_len];
1302 /* It is not necessary to compare scan[2] and match[2] since they are
1311 Assert(scan[2] == match[2], "scan[2]?");
1312 scan++, match++;
1314 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1315 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1316 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1317 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1318 scan < strend);
1321 /* Here, scan <= window+strstart+257 */
1322 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1323 if (*scan == *match) scan++;
1325 len = (MAX_MATCH - 1) - (int)(strend-scan);
1326 scan = strend - (MAX_MATCH-1);
1332 *match != *scan ||
1333 *++match != scan[1]) continue;
1337 * It is not necessary to compare scan[2] and match[2] since they
1341 scan += 2, match++;
1342 Assert(*scan == *match, "match[2]?");
1348 } while (*++scan == *++match && *++scan == *++match &&
1349 *++scan == *++match && *++scan == *++match &&
1350 *++scan == *++match && *++scan == *++match &&
1351 *++scan == *++match && *++scan == *++match &&
1352 scan < strend);
1354 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1356 len = MAX_MATCH - (int)(strend - scan);
1357 scan = strend - MAX_MATCH;
1366 scan_end = *(ushf*)(scan+best_len-1);
1368 scan_end1 = scan[best_len-1];
1369 scan_end = scan[best_len];
1389 register Bytef *scan = s->window + s->strstart; /* current string */
1407 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
1411 * It is not necessary to compare scan[2] and match[2] since they
1415 scan += 2, match += 2;
1416 Assert(*scan == *match, "match[2]?");
1422 } while (*++scan == *++match && *++scan == *++match &&
1423 *++scan == *++match && *++scan == *++match &&
1424 *++scan == *++match && *++scan == *++match &&
1425 *++scan == *++match && *++scan == *++match &&
1426 scan < strend);
1428 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1430 len = MAX_MATCH - (int)(strend - scan);
2063 Bytef *scan, *strend; /* scan goes up to strend for length of run */
2081 scan = s->window + s->strstart - 1;
2082 prev = *scan;
2083 if (prev == *++scan && prev == *++scan && prev == *++scan) {
2086 } while (prev == *++scan && prev == *++scan &&
2087 prev == *++scan && prev == *++scan &&
2088 prev == *++scan && prev == *++scan &&
2089 prev == *++scan && prev == *++scan &&
2090 scan < strend);
2091 s->match_length = MAX_MATCH - (uInt)(strend - scan);
2095 Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");