/string/ |
A D | memrchr.c | 66 unsigned char c; in __memrchr() local 76 if (*--char_ptr == c) in __memrchr() 97 charmask = c | (c << 8); in __memrchr() 161 if (cp[7] == c) in __memrchr() 163 if (cp[6] == c) in __memrchr() 165 if (cp[5] == c) in __memrchr() 167 if (cp[4] == c) in __memrchr() 170 if (cp[3] == c) in __memrchr() 172 if (cp[2] == c) in __memrchr() 174 if (cp[1] == c) in __memrchr() [all …]
|
A D | strchrnul.c | 41 unsigned char c; in STRCHRNUL() local 43 c = (unsigned char) c_in; in STRCHRNUL() 71 charmask = c | (c << 8); in STRCHRNUL() 140 if (*cp == c || *cp == '\0') in STRCHRNUL() 142 if (*++cp == c || *cp == '\0') in STRCHRNUL() 144 if (*++cp == c || *cp == '\0') in STRCHRNUL() 146 if (*++cp == c || *cp == '\0') in STRCHRNUL() 150 if (*++cp == c || *cp == '\0') in STRCHRNUL() 152 if (*++cp == c || *cp == '\0') in STRCHRNUL() 154 if (*++cp == c || *cp == '\0') in STRCHRNUL() [all …]
|
A D | strchr.c | 39 unsigned char c; in STRCHR() local 48 if (*char_ptr == c) in STRCHR() 71 charmask = c | (c << 8); in STRCHR() 140 if (*cp == c) in STRCHR() 144 if (*++cp == c) in STRCHR() 148 if (*++cp == c) in STRCHR() 152 if (*++cp == c) in STRCHR() 158 if (*++cp == c) in STRCHR() 162 if (*++cp == c) in STRCHR() 166 if (*++cp == c) in STRCHR() [all …]
|
A D | test-memset.c | 104 *r++ = c; in SIMPLE_MEMSET() 113 CHAR sentinel = c - 1; in do_one_test() 153 int c, o; in do_random_tests() local 174 c = 0; in do_random_tests() 178 if (o == c) in do_random_tests() 179 o = (c + 1) & BIG_CHAR; in do_random_tests() 216 if (p[i] != c) in do_random_tests() 240 int c = 0; in test_main() local 250 for (c = -65; c <= 130; c += 65) in test_main() 257 do_test (i, c, i); in test_main() [all …]
|
A D | strrchr.c | 28 STRRCHR (const char *s, int c) in STRRCHR() argument 32 c = (unsigned char) c; in STRRCHR() 36 if (c == '\0') in STRRCHR() 40 while ((p = strchr (s, c)) != NULL) in STRRCHR()
|
A D | memchr.c | 61 unsigned char c; in MEMCHR() local 63 c = (unsigned char) c_in; in MEMCHR() 70 if (*char_ptr == c) in MEMCHR() 82 repeated_c = c | (c << 8); in MEMCHR() 153 if (*char_ptr == c) in MEMCHR()
|
A D | test-memccpy.c | 37 if ((*d++ = *s++) == (char) c) in simple_memccpy() 46 void *p = memchr (src, c, n); in stupid_memccpy() 62 if (CALL (impl, dst, src, c, n) != expect) in do_one_test() 65 CALL (impl, dst, src, c, n), expect); in do_one_test() 99 if (s1[i] == (char) c) in do_test() 102 s1[len - 1] = c; in do_test() 107 do_one_test (impl, s2, s1, c, len, n); in do_test() 116 unsigned char *res, c; in do_random_tests() local 121 c = random (); in do_random_tests() 171 p1[i] = c; in do_random_tests() [all …]
|
A D | rawmemchr.c | 40 RAWMEMCHR (const void *s, int c) in RAWMEMCHR() argument 42 if (c != '\0') in RAWMEMCHR() 43 return memchr (s, c, (size_t)-1); in RAWMEMCHR()
|
A D | tst-svc2.c | 22 int c = strverscmp (str1, str2); in compare() local 23 if (c != 0) in compare() 24 c /= abs (c); in compare() 25 return c != exp; in compare()
|
A D | strstr.c | 43 for (int c = hs[0]; h1 != h2 && c != 0; c = *++hs) in strstr2() local 44 h2 = (h2 << 16) | c; in strstr2() 53 for (int c = hs[0]; h1 != h2 && c != 0; c = *++hs) in strstr3() local 54 h2 = (h2 | c) << 8; in strstr3()
|
A D | test-strpbrk.c | 70 CHAR c; in SIMPLE_STRPBRK() local 72 while ((c = *s++) != '\0') in SIMPLE_STRPBRK() 74 if (*r == c) in SIMPLE_STRPBRK() 110 int c; in do_test() local 130 for (c = 1; c <= BIG_CHAR; ++c) in do_test() 131 if (STRCHR (rej, c) == NULL) in do_test() 141 s[i] = c; in do_test() 162 int c; in do_random_tests() local 191 for (c = 1; c <= BIG_CHAR; ++c) in do_random_tests() 192 if (STRCHR ((CHAR *) rej, c) == NULL) in do_random_tests() [all …]
|
A D | memset.c | 27 MEMSET (void *dstpp, int c, size_t len) in MEMSET() argument 36 cccc = (unsigned char) c; in MEMSET() 47 ((byte *) dstp)[0] = c; in MEMSET() 83 ((byte *) dstp)[0] = c; in MEMSET()
|
A D | test-strchr.c | 78 simple_STRCHR (const CHAR *s, int c) in simple_STRCHR() argument 80 for (; *s != (CHAR) c; ++s) in simple_STRCHR() 87 stupid_STRCHR (const CHAR *s, int c) in stupid_STRCHR() argument 92 if (*s++ == (CHAR) c) in stupid_STRCHR() 104 CHAR *res = CALL (impl, s, c); in check_result() 108 c, res, exp_res); in check_result() 116 do_one_test (impl_t *impl, const CHAR *s, int c, const CHAR *exp_res) in do_one_test() argument 118 if (check_result (impl, s, c, exp_res) < 0) in do_one_test() 233 CHAR c = L ('\xfe'); in check1() local 234 CHAR *exp_result = stupid_STRCHR (s, c); in check1() [all …]
|
A D | memccpy.c | 31 __memccpy (void *dest, const void *src, int c, size_t n) in __memccpy() argument 33 void *p = memchr (src, c, n); in __memccpy()
|
A D | Makefile | 91 CFLAGS-inl-tester.c += -fno-builtin 92 CFLAGS-noinl-tester.c += -fno-builtin 93 CFLAGS-tst-strlen.c += -fno-builtin 94 CFLAGS-stratcliff.c += -fno-builtin 95 CFLAGS-test-ffs.c += -fno-builtin 96 CFLAGS-tst-inlcall.c += -fno-builtin 97 CFLAGS-tst-xbzero-opt.c += -O3 98 CFLAGS-test-endian-sign-conversion.c += -Werror -Wsign-conversion 109 CFLAGS-memcpy.c += $(no-stack-protector) 110 CFLAGS-wordcopy.c += $(no-stack-protector)
|
A D | strfry.c | 46 char c = string[i]; in strfry() local 48 string[j] = c; in strfry()
|
A D | test-strcspn.c | 56 CHAR c; in SIMPLE_STRCSPN() local 58 while ((c = *s++) != '\0') in SIMPLE_STRCSPN() 60 if (*r == c) in SIMPLE_STRCSPN()
|
A D | test-rawmemchr.c | 32 simple_rawmemchr (const char *s, int c) in simple_rawmemchr() argument 35 if (*s++ == (char) c) in simple_rawmemchr() 41 do_one_test (impl_t *impl, const char *s, int c, char *exp_res) in do_one_test() argument 43 char *res = CALL (impl, s, c); in do_one_test()
|
A D | strcasestr.c | 45 #define CANON_ELEMENT(c) TOLOWER (c) argument
|
A D | test-memcpy.c | 26 int c; in do_random_tests() local 81 c = random () & 255; in do_random_tests() 93 memset (p2, c, j); in do_random_tests() 107 if (p2[i] != c) in do_random_tests() 118 if (p2[i] != c) in do_random_tests()
|
A D | test-memrchr.c | 30 simple_memrchr (const char *s, int c, size_t n) in simple_memrchr() argument 34 if (*--s == (char) c) in simple_memrchr() 40 do_one_test (impl_t *impl, const char *s, int c, size_t n, char *exp_res) in do_one_test() argument 42 char *res = CALL (impl, s, c, n); in do_one_test()
|
A D | test-strrchr.c | 51 SIMPLE_STRRCHR (const CHAR *s, int c) in SIMPLE_STRRCHR() argument 56 if (*s == (CHAR) c) in SIMPLE_STRRCHR() 59 return (CHAR *) (c == '\0' ? s : ret); in SIMPLE_STRRCHR() 63 do_one_test (impl_t *impl, const CHAR *s, int c, CHAR *exp_res) in do_one_test() argument 65 CHAR *res = CALL (impl, s, c); in do_one_test()
|
A D | test-memchr.c | 53 SIMPLE_MEMCHR (const CHAR *s, int c, size_t n) in SIMPLE_MEMCHR() argument 56 if (*s++ == (CHAR) c) in SIMPLE_MEMCHR() 62 do_one_test (impl_t *impl, const CHAR *s, int c, size_t n, CHAR *exp_res) in do_one_test() argument 64 CHAR *res = CALL (impl, s, c, n); in do_one_test() 68 impl->name, s, c, n, res, exp_res); in do_one_test()
|
A D | test-strspn.c | 62 CHAR c; in SIMPLE_STRSPN() local 64 while ((c = *s++) != '\0') in SIMPLE_STRSPN() 67 if (*r == c) in SIMPLE_STRSPN()
|
A D | test-string.h | 102 cmdline_process_function (int c) in cmdline_process_function() argument 104 switch (c) in cmdline_process_function()
|