Lines Matching refs:scan
730 register Bytef *scan = s->window + s->strstart; /* current string */
748 register ush scan_start = *(ushf*)scan;
749 register ush scan_end = *(ushf*)(scan+best_len-1);
752 register Byte scan_end1 = scan[best_len-1];
753 register Byte scan_end = scan[best_len];
786 /* It is not necessary to compare scan[2] and match[2] since they are
795 Assert(scan[2] == match[2], "scan[2]?");
796 scan++, match++;
798 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
799 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
800 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
801 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
802 scan < strend);
805 /* Here, scan <= window+strstart+257 */
806 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
807 if (*scan == *match) scan++;
809 len = (MAX_MATCH - 1) - (int)(strend-scan);
810 scan = strend - (MAX_MATCH-1);
816 *match != *scan ||
817 *++match != scan[1]) continue;
821 * It is not necessary to compare scan[2] and match[2] since they
825 scan += 2, match++;
826 Assert(*scan == *match, "match[2]?");
832 } while (*++scan == *++match && *++scan == *++match &&
833 *++scan == *++match && *++scan == *++match &&
834 *++scan == *++match && *++scan == *++match &&
835 *++scan == *++match && *++scan == *++match &&
836 scan < strend);
838 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
840 len = MAX_MATCH - (int)(strend - scan);
841 scan = strend - MAX_MATCH;
850 scan_end = *(ushf*)(scan+best_len-1);
852 scan_end1 = scan[best_len-1];
853 scan_end = scan[best_len];
871 register Bytef *scan = s->window + s->strstart; /* current string */
889 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
893 * It is not necessary to compare scan[2] and match[2] since they
897 scan += 2, match += 2;
898 Assert(*scan == *match, "match[2]?");
904 } while (*++scan == *++match && *++scan == *++match &&
905 *++scan == *++match && *++scan == *++match &&
906 *++scan == *++match && *++scan == *++match &&
907 *++scan == *++match && *++scan == *++match &&
908 scan < strend);
910 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
912 len = MAX_MATCH - (int)(strend - scan);