Lines Matching refs:CHAR
44 # define CHAR char macro
60 # define CHAR wchar_t macro
75 typedef CHAR *(*proto_t) (const CHAR *, int);
77 CHAR *
78 simple_STRCHR (const CHAR *s, int c) in simple_STRCHR()
80 for (; *s != (CHAR) c; ++s) in simple_STRCHR()
82 return NULLRET ((CHAR *) s); in simple_STRCHR()
83 return (CHAR *) s; in simple_STRCHR()
86 CHAR *
87 stupid_STRCHR (const CHAR *s, int c) in stupid_STRCHR()
92 if (*s++ == (CHAR) c) in stupid_STRCHR()
93 return (CHAR *) s - 1; in stupid_STRCHR()
94 return NULLRET ((CHAR *) s - 1); in stupid_STRCHR()
102 check_result (impl_t *impl, const CHAR *s, int c, const CHAR *exp_res) in check_result()
104 CHAR *res = CALL (impl, s, c); in check_result()
116 do_one_test (impl_t *impl, const CHAR *s, int c, const CHAR *exp_res) in do_one_test()
129 CHAR *result; in do_test()
130 CHAR *buf = (CHAR *) buf1; in do_test()
132 if ((align + len) * sizeof (CHAR) >= page_size) in do_test()
164 CHAR *result; in do_random_tests()
165 UCHAR *p = (UCHAR *) (buf1 + page_size - 512 * sizeof (CHAR)); in do_random_tests()
211 result = (CHAR *) (p + pos + align); in do_random_tests()
213 result = (CHAR *) (p + len + align); in do_random_tests()
215 result = NULLRET ((CHAR *) (p + len + align)); in do_random_tests()
218 if (CALL (impl, (CHAR *) (p + align), seek_char) != result) in do_random_tests()
222 n, impl->name, align * sizeof (CHAR), seek_char, len, pos, in do_random_tests()
223 CALL (impl, (CHAR *) (p + align), seek_char), result, p); in do_random_tests()
232 CHAR s[] __attribute__((aligned(16))) = L ("\xff"); in check1()
233 CHAR c = L ('\xfe'); in check1()
234 CHAR *exp_result = stupid_STRCHR (s, c); in check1()