Lines Matching refs:scan
1061 register Bytef *scan = s->window + s->strstart; /* current string */
1079 register ush scan_start = *(ushf*)scan;
1080 register ush scan_end = *(ushf*)(scan+best_len-1);
1083 register Byte scan_end1 = scan[best_len-1];
1084 register Byte scan_end = scan[best_len];
1122 /* It is not necessary to compare scan[2] and match[2] since they are
1131 Assert(scan[2] == match[2], "scan[2]?");
1132 scan++, match++;
1134 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1135 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1136 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1137 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1138 scan < strend);
1141 /* Here, scan <= window+strstart+257 */
1142 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1143 if (*scan == *match) scan++;
1145 len = (MAX_MATCH - 1) - (int)(strend-scan);
1146 scan = strend - (MAX_MATCH-1);
1152 *match != *scan ||
1153 *++match != scan[1]) continue;
1157 * It is not necessary to compare scan[2] and match[2] since they
1161 scan += 2, match++;
1162 Assert(*scan == *match, "match[2]?");
1168 } while (*++scan == *++match && *++scan == *++match &&
1169 *++scan == *++match && *++scan == *++match &&
1170 *++scan == *++match && *++scan == *++match &&
1171 *++scan == *++match && *++scan == *++match &&
1172 scan < strend);
1174 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1176 len = MAX_MATCH - (int)(strend - scan);
1177 scan = strend - MAX_MATCH;
1186 scan_end = *(ushf*)(scan+best_len-1);
1188 scan_end1 = scan[best_len-1];
1189 scan_end = scan[best_len];
1208 register Bytef *scan = s->window + s->strstart; /* current string */
1226 if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;
1230 * It is not necessary to compare scan[2] and match[2] since they
1234 scan += 2, match += 2;
1235 Assert(*scan == *match, "match[2]?");
1241 } while (*++scan == *++match && *++scan == *++match &&
1242 *++scan == *++match && *++scan == *++match &&
1243 *++scan == *++match && *++scan == *++match &&
1244 *++scan == *++match && *++scan == *++match &&
1245 scan < strend);
1247 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1249 len = MAX_MATCH - (int)(strend - scan);
1720 Bytef *scan; /* scan for end of run */
1739 scan = s->window + s->strstart - 1;
1740 prev = *scan++;
1742 if (*scan++ != prev)