Lines Matching refs:scan
119 static const unsigned char* GetMatch(const unsigned char* scan, in GetMatch() argument
126 while (scan < safe_end && *((size_t*)scan) == *((size_t*)match)) { in GetMatch()
127 scan += 8; in GetMatch()
132 while (scan < safe_end in GetMatch()
133 && *((unsigned int*)scan) == *((unsigned int*)match)) { in GetMatch()
134 scan += 4; in GetMatch()
139 while (scan < safe_end && *scan == *match && *++scan == *++match in GetMatch()
140 && *++scan == *++match && *++scan == *++match in GetMatch()
141 && *++scan == *++match && *++scan == *++match in GetMatch()
142 && *++scan == *++match && *++scan == *++match) { in GetMatch()
143 scan++; match++; in GetMatch()
148 while (scan != end && *scan == *match) { in GetMatch()
149 scan++; match++; in GetMatch()
152 return scan; in GetMatch()
236 const unsigned char* scan; in ZopfliFindLongestMatch() local
296 scan = &array[pos]; in ZopfliFindLongestMatch()
301 || *(scan + bestlength) == *(match + bestlength)) { in ZopfliFindLongestMatch()
305 if (same0 > 2 && *scan == *match) { in ZopfliFindLongestMatch()
309 scan += same; in ZopfliFindLongestMatch()
313 scan = GetMatch(scan, match, arrayend, arrayend_safe); in ZopfliFindLongestMatch()
314 currentlength = scan - &array[pos]; /* The found length. */ in ZopfliFindLongestMatch()