Lines Matching refs:j

128   size_t j; /* Index into NEEDLE for current candidate suffix.  */  in critical_factorization()  local
144 j = 0; in critical_factorization()
146 while (j + k < needle_len) in critical_factorization()
148 a = CANON_ELEMENT (needle[j + k]); in critical_factorization()
153 j += k; in critical_factorization()
155 p = j - max_suffix; in critical_factorization()
164 j += p; in critical_factorization()
171 max_suffix = j++; in critical_factorization()
179 j = 0; in critical_factorization()
181 while (j + k < needle_len) in critical_factorization()
183 a = CANON_ELEMENT (needle[j + k]); in critical_factorization()
188 j += k; in critical_factorization()
190 p = j - max_suffix_rev; in critical_factorization()
199 j += p; in critical_factorization()
206 max_suffix_rev = j++; in critical_factorization()
234 size_t j; /* Index into current window of HAYSTACK. */ in two_way_short_needle() local
251 j = 0; in two_way_short_needle()
252 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle()
257 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
264 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
267 return (RETURN_TYPE) (haystack + j); in two_way_short_needle()
270 j += period; in two_way_short_needle()
275 j += i - suffix + 1; in two_way_short_needle()
285 j = 0; in two_way_short_needle()
286 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle()
291 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
298 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
301 return (RETURN_TYPE) (haystack + j); in two_way_short_needle()
302 j += period; in two_way_short_needle()
305 j += i - suffix + 1; in two_way_short_needle()
328 size_t j; /* Index into current window of HAYSTACK. */ in two_way_long_needle() local
356 j = 0; in two_way_long_needle()
357 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_long_needle()
361 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle()
372 j += shift; in two_way_long_needle()
379 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
386 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
389 return (RETURN_TYPE) (haystack + j); in two_way_long_needle()
392 j += period; in two_way_long_needle()
397 j += i - suffix + 1; in two_way_long_needle()
408 j = 0; in two_way_long_needle()
409 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_long_needle()
413 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle()
416 j += shift; in two_way_long_needle()
423 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
430 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
433 return (RETURN_TYPE) (haystack + j); in two_way_long_needle()
434 j += period; in two_way_long_needle()
437 j += i - suffix + 1; in two_way_long_needle()