/netbsd-current/external/gpl3/gdb/dist/gnulib/import/ |
H A D | strstr.c | 43 size_t needle_len; /* Length of NEEDLE. */ local 59 needle_len = needle - needle_start; 61 if (!haystack || __builtin_expect (needle_len == 1, 0)) 63 needle -= needle_len; 64 haystack_len = (haystack > haystack_start + needle_len ? 1 65 : needle_len + haystack_start - haystack); 70 if (needle_len < LONG_NEEDLE_THRESHOLD) 73 (const unsigned char *) needle, needle_len); 75 (const unsigned char *) needle, needle_len);
|
H A D | memmem.c | 36 const void *needle_start, size_t needle_len) 43 if (needle_len == 0) 50 if (__builtin_expect (haystack_len < needle_len, 0)) 57 if (needle_len < LONG_NEEDLE_THRESHOLD) 60 if (!haystack || __builtin_expect (needle_len == 1, 0)) 63 if (haystack_len < needle_len) 65 return two_way_short_needle (haystack, haystack_len, needle, needle_len); 68 return two_way_long_needle (haystack, haystack_len, needle, needle_len); 35 memmem(const void *haystack_start, size_t haystack_len, const void *needle_start, size_t needle_len) argument
|
H A D | str-two-way.h | 108 critical_factorization (const unsigned char *needle, size_t needle_len, argument 120 if (needle_len < 3) 123 return needle_len - 1; 139 while (j + k < needle_len) 174 while (j + k < needle_len) 236 const unsigned char *needle, size_t needle_len) 246 suffix = critical_factorization (needle, needle_len, &period); 257 while (AVAILABLE (haystack, haystack_len, j, needle_len)) 261 while (i < needle_len && (CANON_ELEMENT (needle[i]) 264 if (needle_len < 235 two_way_short_needle(const unsigned char *haystack, size_t haystack_len, const unsigned char *needle, size_t needle_len) argument 329 two_way_long_needle(const unsigned char *haystack, size_t haystack_len, const unsigned char *needle, size_t needle_len) argument [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | strstr.c | 43 size_t needle_len; /* Length of NEEDLE. */ local 59 needle_len = needle - needle_start; 61 if (!haystack || __builtin_expect (needle_len == 1, 0)) 63 needle -= needle_len; 64 haystack_len = (haystack > haystack_start + needle_len ? 1 65 : needle_len + haystack_start - haystack); 70 if (needle_len < LONG_NEEDLE_THRESHOLD) 73 (const unsigned char *) needle, needle_len); 75 (const unsigned char *) needle, needle_len);
|
H A D | memmem.c | 36 const void *needle_start, size_t needle_len) 43 if (needle_len == 0) 50 if (__builtin_expect (haystack_len < needle_len, 0)) 57 if (needle_len < LONG_NEEDLE_THRESHOLD) 60 if (!haystack || __builtin_expect (needle_len == 1, 0)) 63 if (haystack_len < needle_len) 65 return two_way_short_needle (haystack, haystack_len, needle, needle_len); 68 return two_way_long_needle (haystack, haystack_len, needle, needle_len); 35 memmem(const void *haystack_start, size_t haystack_len, const void *needle_start, size_t needle_len) argument
|
H A D | str-two-way.h | 108 critical_factorization (const unsigned char *needle, size_t needle_len, argument 120 if (needle_len < 3) 123 return needle_len - 1; 139 while (j + k < needle_len) 174 while (j + k < needle_len) 236 const unsigned char *needle, size_t needle_len) 246 suffix = critical_factorization (needle, needle_len, &period); 257 while (AVAILABLE (haystack, haystack_len, j, needle_len)) 261 while (i < needle_len && (CANON_ELEMENT (needle[i]) 264 if (needle_len < 235 two_way_short_needle(const unsigned char *haystack, size_t haystack_len, const unsigned char *needle, size_t needle_len) argument 329 two_way_long_needle(const unsigned char *haystack, size_t haystack_len, const unsigned char *needle, size_t needle_len) argument [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/ |
H A D | memmem.c | 21 size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 24 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 47 size_t needle_len) 51 = (const char *) haystack + haystack_len - needle_len; 53 if (needle_len == 0) 60 if (__builtin_expect (haystack_len < needle_len, 0)) 67 needle_len - 1)) 46 memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len) argument
|
/netbsd-current/external/gpl3/gcc/dist/libiberty/ |
H A D | memmem.c | 21 size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 24 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 47 size_t needle_len) 51 = (const char *) haystack + haystack_len - needle_len; 53 if (needle_len == 0) 60 if (__builtin_expect (haystack_len < needle_len, 0)) 67 needle_len - 1)) 46 memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len) argument
|
/netbsd-current/external/gpl3/binutils.old/dist/libiberty/ |
H A D | memmem.c | 21 size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 24 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 47 size_t needle_len) 51 = (const char *) haystack + haystack_len - needle_len; 53 if (needle_len == 0) 60 if (__builtin_expect (haystack_len < needle_len, 0)) 67 needle_len - 1)) 46 memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len) argument
|
/netbsd-current/external/gpl3/binutils/dist/libiberty/ |
H A D | memmem.c | 21 size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 24 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 47 size_t needle_len) 51 = (const char *) haystack + haystack_len - needle_len; 53 if (needle_len == 0) 60 if (__builtin_expect (haystack_len < needle_len, 0)) 67 needle_len - 1)) 46 memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len) argument
|
/netbsd-current/external/gpl3/gdb/dist/libiberty/ |
H A D | memmem.c | 21 size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 24 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 47 size_t needle_len) 51 = (const char *) haystack + haystack_len - needle_len; 53 if (needle_len == 0) 60 if (__builtin_expect (haystack_len < needle_len, 0)) 67 needle_len - 1)) 46 memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len) argument
|
/netbsd-current/external/gpl3/gdb.old/dist/libiberty/ |
H A D | memmem.c | 21 size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 24 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 47 size_t needle_len) 51 = (const char *) haystack + haystack_len - needle_len; 53 if (needle_len == 0) 60 if (__builtin_expect (haystack_len < needle_len, 0)) 67 needle_len - 1)) 46 memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len) argument
|
/netbsd-current/external/bsd/wpa/dist/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 533 const u8 *needle, size_t needle_len) 539 if (!needle || !needle_len) 547 if (haystack_len - i < needle_len) 549 if (os_memcmp(haystack + i, needle, needle_len) == 0) 532 find_p2ps_substr(struct p2ps_advertisement *adv_data, const u8 *needle, size_t needle_len) argument
|