Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutils/isoc/newlib/
H A Dstr-two-way.h123 critical_factorization (const unsigned char *needle, size_t needle_len, in critical_factorization() argument
148 a = CANON_ELEMENT (needle[j + k]); in critical_factorization()
149 b = CANON_ELEMENT (needle[(size_t)(max_suffix + k)]); in critical_factorization()
183 a = CANON_ELEMENT (needle[j + k]); in critical_factorization()
184 b = CANON_ELEMENT (needle[max_suffix_rev + k]); in critical_factorization()
231 const unsigned char *needle, size_t needle_len) in two_way_short_needle() argument
241 suffix = critical_factorization (needle, needle_len, &period); in two_way_short_needle()
245 if (CMP_FUNC (needle, needle + period, suffix) == 0) in two_way_short_needle()
256 while (i < needle_len && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
263 while (memory < i + 1 && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
[all …]
H A Dstrstr.c122 const char *needle = lookfor;
130 while (*haystack && *needle)
131 ok &= *haystack++ == *needle++;
132 if (*needle)
139 needle_len = needle - lookfor;