Lines Matching refs:scan
560 register Byte *scan = s->window + s->strstart; /* current string */ in longest_match() local
578 register ush scan_start = *(ush*)scan; in longest_match()
579 register ush scan_end = *(ush*)(scan+best_len-1); in longest_match()
582 register Byte scan_end1 = scan[best_len-1]; in longest_match()
583 register Byte scan_end = scan[best_len]; in longest_match()
625 Assert(scan[2] == match[2], "scan[2]?"); in longest_match()
626 scan++, match++; in longest_match()
628 } while (*(ush*)(scan+=2) == *(ush*)(match+=2) && in longest_match()
629 *(ush*)(scan+=2) == *(ush*)(match+=2) && in longest_match()
630 *(ush*)(scan+=2) == *(ush*)(match+=2) && in longest_match()
631 *(ush*)(scan+=2) == *(ush*)(match+=2) && in longest_match()
632 scan < strend); in longest_match()
636 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan"); in longest_match()
637 if (*scan == *match) scan++; in longest_match()
639 len = (MAX_MATCH - 1) - (int)(strend-scan); in longest_match()
640 scan = strend - (MAX_MATCH-1); in longest_match()
646 *match != *scan || in longest_match()
647 *++match != scan[1]) continue; in longest_match()
655 scan += 2, match++; in longest_match()
656 Assert(*scan == *match, "match[2]?"); in longest_match()
662 } while (*++scan == *++match && *++scan == *++match && in longest_match()
663 *++scan == *++match && *++scan == *++match && in longest_match()
664 *++scan == *++match && *++scan == *++match && in longest_match()
665 *++scan == *++match && *++scan == *++match && in longest_match()
666 scan < strend); in longest_match()
668 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan"); in longest_match()
670 len = MAX_MATCH - (int)(strend - scan); in longest_match()
671 scan = strend - MAX_MATCH; in longest_match()
680 scan_end = *(ush*)(scan+best_len-1); in longest_match()
682 scan_end1 = scan[best_len-1]; in longest_match()
683 scan_end = scan[best_len]; in longest_match()