Lines Matching refs:c
91 builtin_memset (char *s, int c, size_t n) in builtin_memset() argument
93 return __builtin_memset (s, c, n); in builtin_memset()
100 SIMPLE_MEMSET (CHAR *s, int c, size_t n) in SIMPLE_MEMSET() argument
104 *r++ = c; in SIMPLE_MEMSET()
109 do_one_test (impl_t *impl, CHAR *s, int c __attribute ((unused)), size_t n) in do_one_test()
113 CHAR sentinel = c - 1; in do_one_test()
123 CHAR *res = CALL (impl, s, c, n); in do_one_test()
125 || SIMPLE_MEMSET (tstbuf, c, n) != tstbuf in do_one_test()
138 do_test (size_t align, int c, size_t len) in do_test() argument
145 do_one_test (impl, (CHAR *) (buf1) + align, c, len); in do_test()
153 int c, o; in do_random_tests() local
174 c = 0; in do_random_tests()
176 c = random () & BIG_CHAR; in do_random_tests()
178 if (o == c) in do_random_tests()
179 o = (c + 1) & BIG_CHAR; in do_random_tests()
197 if (p[i + align] == c) in do_random_tests()
200 res = (UCHAR *) CALL (impl, (CHAR *) p + align, c, len); in do_random_tests()
204 n, impl->name, align, c, len, res, p + align); in do_random_tests()
211 n, impl->name, align, c, len); in do_random_tests()
216 if (p[i] != c) in do_random_tests()
219 n, impl->name, align, c, len); in do_random_tests()
227 n, impl->name, align, c, len); in do_random_tests()
240 int c = 0; in test_main() local
250 for (c = -65; c <= 130; c += 65) in test_main()
254 do_test (0, c, 1 << i); in test_main()
257 do_test (i, c, i); in test_main()
258 do_test (4096 - i, c, i); in test_main()
259 do_test (4095, c, i); in test_main()
261 do_test (0, c, i); in test_main()
263 do_test (1, c, 14); in test_main()
264 do_test (3, c, 1024); in test_main()
265 do_test (4, c, 64); in test_main()
266 do_test (2, c, 25); in test_main()