Lines Matching defs:scan

944     register Bytef *scan = s->window + s->strstart; /* current string */
961 register ush scan_start = *(ushf*)scan;
962 register ush scan_end = *(ushf*)(scan+best_len-1);
965 register Byte scan_end1 = scan[best_len-1];
966 register Byte scan_end = scan[best_len];
994 /* It is not necessary to compare scan[2] and match[2] since they are
1003 Assert(scan[2] == match[2], "scan[2]?");
1004 scan++, match++;
1006 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1007 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1008 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1009 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1010 scan < strend);
1013 /* Here, scan <= window+strstart+257 */
1014 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1015 if (*scan == *match) scan++;
1017 len = (MAX_MATCH - 1) - (int)(strend-scan);
1018 scan = strend - (MAX_MATCH-1);
1024 *match != *scan ||
1025 *++match != scan[1]) continue;
1029 * It is not necessary to compare scan[2] and match[2] since they
1033 scan += 2, match++;
1034 Assert(*scan == *match, "match[2]?");
1040 } while (*++scan == *++match && *++scan == *++match &&
1041 *++scan == *++match && *++scan == *++match &&
1042 *++scan == *++match && *++scan == *++match &&
1043 *++scan == *++match && *++scan == *++match &&
1044 scan < strend);
1046 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1048 len = MAX_MATCH - (int)(strend - scan);
1049 scan = strend - MAX_MATCH;
1058 scan_end = *(ushf*)(scan+best_len-1);
1060 scan_end1 = scan[best_len-1];
1061 scan_end = scan[best_len];