Lines Matching refs:scan
1332 Bytef *scan = s->window + s->strstart; /* current string */
1350 ush scan_start = *(ushf*)scan;
1351 ush scan_end = *(ushf*)(scan+best_len-1);
1354 Byte scan_end1 = scan[best_len-1];
1355 Byte scan_end = scan[best_len];
1388 /* It is not necessary to compare scan[2] and match[2] since they are
1397 Assert(scan[2] == match[2], "scan[2]?");
1398 scan++, match++;
1400 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1401 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1402 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1403 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1404 scan < strend);
1407 /* Here, scan <= window+strstart+257 */
1408 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1409 if (*scan == *match) scan++;
1411 len = (MAX_MATCH - 1) - (int)(strend-scan);
1412 scan = strend - (MAX_MATCH-1);
1418 *match != *scan ||
1419 *++match != scan[1]) continue;
1423 * It is not necessary to compare scan[2] and match[2] since they
1427 scan += 2, match++;
1428 Assert(*scan == *match, "match[2]?");
1434 } while (*++scan == *++match && *++scan == *++match &&
1435 *++scan == *++match && *++scan == *++match &&
1436 *++scan == *++match && *++scan == *++match &&
1437 *++scan == *++match && *++scan == *++match &&
1438 scan < strend);
1440 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1442 len = MAX_MATCH - (int)(strend - scan);
1443 scan = strend - MAX_MATCH;
1452 scan_end = *(ushf*)(scan+best_len-1);
1454 scan_end1 = scan[best_len-1];
1455 scan_end = scan[best_len];
1472 Bytef *scan = s->window + s->strstart; /* current string */
1490 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
1494 * It is not necessary to compare scan[2] and match[2] since they
1498 scan += 2, match += 2;
1499 Assert(*scan == *match, "match[2]?");
1505 } while (*++scan == *++match && *++scan == *++match &&
1506 *++scan == *++match && *++scan == *++match &&
1507 *++scan == *++match && *++scan == *++match &&
1508 *++scan == *++match && *++scan == *++match &&
1509 scan < strend);
1511 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1513 len = MAX_MATCH - (int)(strend - scan);