/glibc-2.36/string/ |
D | test-strstr.c | 61 char *exp_result) in check_result() argument 64 if (result != exp_result) in check_result() 68 (exp_result == NULL) ? "(null)" : exp_result); in check_result() 77 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() argument 79 if (check_result (impl, s1, s2, exp_result) < 0) in do_one_test() 130 char *exp_result; in check1() local 132 exp_result = simple_strstr (s1, s2); in check1() 134 check_result (impl, s1, s2, exp_result); in check1() 144 char *exp_result; in check2() local 165 exp_result = simple_strstr (s1_stack, s2_stack); in check2() [all …]
|
D | test-strcasecmp.c | 47 do_one_test (impl_t *impl, const char *s1, const char *s2, int exp_result) in do_one_test() argument 50 if ((exp_result == 0 && result != 0) in do_one_test() 51 || (exp_result < 0 && result >= 0) in do_one_test() 52 || (exp_result > 0 && result <= 0)) in do_one_test() 55 result, exp_result); in do_one_test() 63 int exp_result) in do_test() argument 91 s2[len + 1] = 24 + exp_result; in do_test() 93 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test() 94 || (s2[len - 1] == 'a' && exp_result == 1)) in do_test() 95 s1[len - 1] += exp_result; in do_test() [all …]
|
D | test-strncasecmp.c | 57 int exp_result) in check_result() argument 60 if ((exp_result == 0 && result != 0) in check_result() 61 || (exp_result < 0 && result >= 0) in check_result() 62 || (exp_result > 0 && result <= 0)) in check_result() 65 result, exp_result); in check_result() 75 int exp_result) in do_one_test() argument 77 if (check_result (impl, s1, s2, n, exp_result) < 0) in do_one_test() 83 int exp_result) in do_test() argument 111 s2[len + 1] = 24 + exp_result; in do_test() 113 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test() [all …]
|
D | test-strcmp.c | 107 int exp_result) in check_result() argument 110 if ((exp_result == 0 && result != 0) in check_result() 111 || (exp_result < 0 && result >= 0) in check_result() 112 || (exp_result > 0 && result <= 0)) in check_result() 115 result, exp_result); in check_result() 126 int exp_result) in do_one_test() argument 128 if (check_result (impl, s1, s2, exp_result) < 0) in do_one_test() 134 int exp_result) in do_test() argument 165 s2[len + 1] = 24 + exp_result; in do_test() 166 s2[len - 1] -= exp_result; in do_test() [all …]
|
D | test-strncmp.c | 96 int exp_result) in check_result() argument 99 if ((exp_result == 0 && result != 0) in check_result() 100 || (exp_result < 0 && result >= 0) in check_result() 101 || (exp_result > 0 && result <= 0)) in check_result() 104 result, exp_result); in check_result() 114 int exp_result) in do_one_test() argument 116 if (check_result (impl, s1, s2, n, exp_result) < 0) in do_one_test() 122 int exp_result) in do_test_limit() argument 161 if (exp_result < 0) in do_test_limit() 163 else if (exp_result > 0) in do_test_limit() [all …]
|
D | test-strcasestr.c | 62 char *exp_result) in check_result() argument 65 if (result != exp_result) in check_result() 69 (exp_result == NULL) ? "(null)" : exp_result); in check_result() 77 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() argument 79 if (check_result (impl, s1, s2, exp_result) < 0) in do_one_test() 129 char *exp_result; in check1() local 131 exp_result = simple_strcasestr (s1, s2); in check1() 133 check_result (impl, s1, s2, exp_result); in check1()
|
D | test-memcmp.c | 92 int exp_result) in check_result() argument 95 if (BAD_RESULT(result, exp_result)) in check_result() 98 result, exp_result); in check_result() 108 int exp_result) in do_one_test() argument 110 if (check_result (impl, s1, s2, len, exp_result) < 0) in do_one_test() 115 do_test (size_t align1, size_t align2, size_t len, int exp_result) in do_test() argument 139 s2[len - 1] -= exp_result; in do_test() 142 do_one_test (impl, s1, s2, len, exp_result); in do_test() 214 int n, exp_result; in check1() local 453 exp_result = SIMPLE_MEMCMP (s1 + i, s2 + i, len); in check1() [all …]
|
D | test-memmem.c | 135 void *exp_result; in check1() local 138 exp_result = simple_memmem (search_buf, sizeof search_buf_data, in check1() 142 pattern, sizeof pattern, exp_result); in check1()
|
D | test-strchr.c | 222 CHAR *exp_result = simple_STRCHR (s, c); in check1() local 225 check_result (impl, s, c, exp_result); in check1()
|
/glibc-2.36/benchtests/ |
D | bench-strcasecmp.c | 45 const char *s2, int exp_result) in do_one_test() argument 50 if ((exp_result == 0 && result != 0) in do_one_test() 51 || (exp_result < 0 && result >= 0) in do_one_test() 52 || (exp_result > 0 && result <= 0)) in do_one_test() 55 result, exp_result); in do_one_test() 74 int max_char, int exp_result) in do_test() argument 108 s2[len + 1] = 24 + exp_result; in do_test() 109 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test() 110 || (s2[len - 1] == 'a' && exp_result == 1)) in do_test() 111 s1[len - 1] += exp_result; in do_test() [all …]
|
D | bench-strncmp.c | 76 *s2, size_t n, int exp_result) in do_one_test() argument 95 size_t n, int max_char, int exp_result) in do_test_limit() argument 130 if (exp_result < 0) in do_test_limit() 132 else if (exp_result > 0) in do_test_limit() 136 do_one_test (json_ctx, impl, s1, s2, n, exp_result); in do_test_limit() 145 n, int max_char, int exp_result) in do_test() argument 177 s1[n] = 24 + exp_result; in do_test() 181 if (exp_result < 0) in do_test() 183 else if (exp_result > 0) in do_test() 186 s2[n - 1] -= exp_result; in do_test() [all …]
|
D | bench-strncasecmp.c | 52 const char *s2, size_t n, int exp_result) in do_one_test() argument 71 size_t len, int max_char, int exp_result) in do_test() argument 98 s2[len + 1] = 24 + exp_result; in do_test() 99 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test() 100 || (s2[len - 1] == 'a' && exp_result == 1)) in do_test() 101 s1[len - 1] += exp_result; in do_test() 103 s2[len - 1] -= exp_result; in do_test() 114 do_one_test (json_ctx, impl, s1, s2, n, exp_result); in do_test()
|
D | bench-strcmp.c | 84 int exp_result) in do_one_test() argument 103 int max_char, int exp_result, int at_end) in do_test() argument 140 s2[len + 1] = 24 + exp_result; in do_test() 141 s2[len - 1] -= exp_result; in do_test() 150 do_one_test (json_ctx, impl, s1, s2, exp_result); in do_test() 159 int exp_result) in do_one_test_page_boundary() argument 167 do_one_test (json_ctx, impl, s1, s2, exp_result); in do_one_test_page_boundary() 183 int exp_result; in do_test_page_boundary() local 204 exp_result = SIMPLE_STRCMP (s1p, s2p); in do_test_page_boundary() 206 len, exp_result); in do_test_page_boundary()
|
D | bench-memcmp.c | 66 const CHAR *s2, size_t len, int exp_result) in do_one_test() argument 85 int exp_result) in do_test() argument 105 json_attr_uint (json_ctx, "result", (double) exp_result); in do_test() 116 s2[len - 1] -= exp_result; in do_test() 120 do_one_test (json_ctx, impl, s1, s2, len, exp_result); in do_test()
|
D | bench-strstr.c | 135 const char *s2, char *exp_result) in do_one_test() argument 150 if (res != exp_result) in do_one_test() 154 (exp_result == NULL) ? "(null)" : exp_result); in do_one_test()
|
D | bench-strcasestr.c | 37 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() argument
|