Searched refs:ne_len (Results 1 – 4 of 4) sorted by relevance
/glibc-2.36/benchtests/ |
D | bench-strstr.c | 224 test_hard_needle (json_ctx_t *json_ctx, size_t ne_len, size_t hs_len) in test_hard_needle() argument 232 memset (ne, 'a', ne_len); in test_hard_needle() 233 ne[ne_len] = '\0'; in test_hard_needle() 234 ne[ne_len - 14] = 'b'; in test_hard_needle() 237 for (size_t i = ne_len; i <= hs_len; i += ne_len) in test_hard_needle() 245 json_attr_uint (json_ctx, "len_needle", ne_len); in test_hard_needle() 263 memset (ne, 'a', ne_len); in test_hard_needle() 264 ne[ne_len] = '\0'; in test_hard_needle() 265 ne[ne_len - 6] = 'b'; in test_hard_needle() 268 for (size_t i = ne_len; i <= hs_len; i += ne_len) in test_hard_needle() [all …]
|
D | bench-memmem.c | 30 size_t ne_len) in basic_memmem() argument 35 if (ne_len == 0) in basic_memmem() 39 const char *end = hs + hs_len - ne_len; in basic_memmem() 45 for (i = ne_len - 1; i != 0; i--) in basic_memmem()
|
/glibc-2.36/string/ |
D | memmem.c | 54 const void *needle, size_t ne_len) in __memmem() argument 59 if (ne_len == 0) in __memmem() 61 if (ne_len == 1) in __memmem() 65 if (hs_len < ne_len) in __memmem() 68 const unsigned char *end = hs + hs_len - ne_len; in __memmem() 70 if (ne_len == 2) in __memmem() 79 if (__builtin_expect (ne_len > 256, 0)) in __memmem() 80 return two_way_long_needle (hs, hs_len, ne, ne_len); in __memmem() 84 size_t m1 = ne_len - 1; in __memmem()
|
D | strstr.c | 95 size_t ne_len = strlen ((const char*)ne); in STRSTR() local 96 size_t hs_len = __strnlen ((const char*)hs, ne_len | 512); in STRSTR() 97 if (hs_len < ne_len) in STRSTR() 102 if (memcmp (hs, ne, ne_len) == 0) in STRSTR() 106 if (__glibc_unlikely (ne_len > 256)) in STRSTR() 107 return two_way_long_needle (hs, hs_len, ne, ne_len); in STRSTR() 109 const unsigned char *end = hs + hs_len - ne_len; in STRSTR() 112 size_t m1 = ne_len - 1; in STRSTR()
|