Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 22 of 22) sorted by relevance

/benchtests/
A Dbench-strncmp.c43 c2 = *s2++; in simple_wcsncmp()
98 CHAR *s1, *s2; in do_test_limit() local
121 s2 = (CHAR *) ((char *) s2 - (align_n - align2)); in do_test_limit()
129 s2[len] = 0; in do_test_limit()
148 CHAR *s1, *s2; in do_test() local
178 s2[n] = 23; in do_test()
182 s2[len] = 32; in do_test()
251 CHAR *s2) in do_one_test_page() argument
262 s2 += offset2; in do_one_test_page()
299 CHAR *s1, *s2; in do_test_page() local
[all …]
A Dbench-strcasecmp.c36 - (unsigned char) tolower (*s2))) == 0 in simple_strcasecmp()
38 ++s2; in simple_strcasecmp()
47 int result = CALL (impl, s1, s2); in do_one_test()
61 CALL (impl, s1, s2); in do_one_test()
75 char *s1, *s2; in do_test() local
89 s2 = (char *) (buf2 + align2); in do_test()
94 s2[i] = tolower (s1[i]); in do_test()
97 s1[len] = s2[len] = 0; in do_test()
99 s2[len + 1] = 24 + exp_result; in do_test()
104 s2[len - 1] -= exp_result; in do_test()
[all …]
A Dbench-strcmp.c44 c2 = *s2++; in simple_wcscmp()
64 simple_strcmp (const char *s1, const char *s2) in simple_strcmp() argument
83 const CHAR *s1, const CHAR *s2, in do_one_test() argument
92 CALL (impl, s1, s2); in do_one_test()
107 CHAR *s1, *s2; in do_test() local
129 s1[len] = s2[len] = 0; in do_test()
131 s2[len + 1] = 24 + exp_result; in do_test()
132 s2[len - 1] -= exp_result; in do_test()
177 memset (s2, 'a', page_size); in do_test_page_boundary()
180 s2[(page_size / CHARBYTES) - 1] = (CHAR) 0; in do_test_page_boundary()
[all …]
A Dbench-strncasecmp.c39 - (unsigned char) tolower (*s2))) == 0 in simple_strncasecmp()
44 ++s2; in simple_strncasecmp()
59 CALL (impl, s1, s2, n); in do_one_test()
73 char *s1, *s2; in do_test() local
87 s2 = (char *) (buf2 + align2); in do_test()
92 s2[i] = tolower (s1[i]); in do_test()
95 s1[len] = s2[len] = 0; in do_test()
97 s2[len + 1] = 24 + exp_result; in do_test()
98 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test()
102 s2[len - 1] -= exp_result; in do_test()
[all …]
A Dbench-memcmp.c34 SIMPLE_MEMCMP (const wchar_t *s1, const wchar_t *s2, size_t n) in SIMPLE_MEMCMP() argument
41 while (n-- && (ret = *s1 < *s2 ? -1 : *s1 == *s2 ? 0 : 1) == 0) {s1++; s2++;} in SIMPLE_MEMCMP()
48 SIMPLE_MEMCMP (const char *s1, const char *s2, size_t n) in SIMPLE_MEMCMP() argument
66 const CHAR *s2, size_t len, int exp_result) in do_one_test() argument
74 CALL (impl, s1, s2, len); in do_one_test()
88 CHAR *s1, *s2; in do_test() local
109 s2 = (CHAR *)(buf2 + align2); in do_test()
112 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % MAX_CHAR; in do_test()
115 s2[len] = align2; in do_test()
116 s2[len - 1] -= exp_result; in do_test()
[all …]
A Dbench-strstr.c51 basic_strstr (const char *s1, const char *s2) in basic_strstr() argument
54 int c = s2[0]; in basic_strstr()
63 for (i = 1; s2[i] != 0; i++) in basic_strstr()
64 if (s1[i] != s2[i]) in basic_strstr()
66 if (s2[i] == '\0') in basic_strstr()
140 res = CALL (impl, s1, s2); in do_one_test()
162 char *s2 = (char *) (buf2 + align2); in do_test() local
167 char *ss2 = s2; in do_test()
179 s2[len2] = '\0'; in do_test()
190 memcpy (s1 + len1 - len2, s2, len2); in do_test()
[all …]
A Dbench-strtok.c61 do_one_test (impl_t * impl, const char *s1, const char *s2) in do_one_test() argument
68 CALL (impl, s1, s2); in do_one_test()
69 CALL (impl, NULL, s2); in do_one_test()
70 CALL (impl, NULL, s2); in do_one_test()
84 char *s2 = (char *) (buf2 + align2); in do_test() local
87 char *ss2 = s2; in do_test()
93 s2[len2] = '\0'; in do_test()
115 memcpy (s1 + (len1 - len2) - 2, s2, len2); in do_test()
117 memcpy (s1 + (len1 - len2) - (3 * len2), s2, len2); in do_test()
120 do_one_test (impl, s1, s2); in do_test()
A Dbench-strsep.c24 simple_strsep (char **s1, char *s2) in simple_strsep() argument
34 ssize_t s2len = strlen (s2); in simple_strsep()
39 if (*s == s2[j]) in simple_strsep()
104 do_one_test (impl_t * impl, const char *s1, const char *s2) in do_one_test() argument
113 CALL (impl, &s1a, s2); in do_one_test()
127 char *s2 = (char *) (buf2 + align2); in do_test() local
133 char *ss2 = s2; in do_test()
139 s2[len2] = '\0'; in do_test()
151 do_one_test (impl, s1, s2); in do_test()
A Dbench-memmove-walk.c75 char *s1, *s2, *tmp; in do_test() local
79 s2 = (char *) (buf2); in do_test()
81 s2 = s1; in do_test()
83 s2 += len / 2; in do_test()
93 json_attr_uint (json_ctx, "dst > src", (double) (s2 > s1)); in do_test()
104 s1 = s2; in do_test()
105 s2 = tmp; in do_test()
A Dbench-strcasestr.c37 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() argument
45 CALL (impl, s1, s2); in do_one_test()
60 char *s2 = (char *) (buf2 + align2); in do_test() local
64 char *ss2 = s2; in do_test()
70 s2[len2] = '\0'; in do_test()
87 s1[len1 - len2 + i] = toupper (s2[i]); in do_test()
95 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test()
A Dbench-memcpy-walk.c72 char *s1, *s2; in do_test() local
75 s2 = (char *) (buf2); in do_test()
81 json_attr_uint (json_ctx, "dst > src", (double) (s2 > s1)); in do_test()
85 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
91 s2 = (char *) (buf1); in do_test()
A Dbench-memcpy-large.c59 char *s1, *s2; in do_test() local
70 s2 = (char *) (buf2 + align2); in do_test()
81 json_attr_uint (json_ctx, "dst > src", (double) (s2 > s1)); in do_test()
85 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
91 s2 = (char *) (buf1 + align2); in do_test()
A Dbench-strcat.c90 CHAR *s1, *s2; in do_test() local
101 s2 = (CHAR *) (buf2) + align2; in do_test()
108 s2[i] = 32 + 23 * i % (max_char - 32); in do_test()
114 s2[len2] = '\0'; in do_test()
115 do_one_test (impl, s2, s1); in do_test()
A Dbench-strncat.c99 CHAR *s1, *s2; in do_test() local
112 s2 = (CHAR *) (buf2) + align2; in do_test()
119 s2[i] = 32 + 23 * i % (max_char - 32); in do_test()
126 s2[len2] = '\0'; in do_test()
127 do_one_test (impl, s2, s1, n); in do_test()
A Dbench-memcpy.c64 char *s1, *s2; in do_test() local
75 s2 = (char *) (buf2 + align2); in do_test()
86 json_attr_uint (json_ctx, "dst > src", (double) (s2 > s1)); in do_test()
90 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
96 s2 = (char *) (buf1 + align2); in do_test()
A Dbench-memmove-large.c55 char *s1, *s2; in do_test() local
66 s2 = (char *) (buf2 + align2); in do_test()
78 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
A Dbench-memccpy.c64 char *s1, *s2; in do_test() local
75 s2 = (char *) (buf2 + align2); in do_test()
90 do_one_test (impl, s2, s1, c, len, n); in do_test()
A Dbench-strcpy.c93 CHAR *s1, *s2; in do_test() local
106 s2 = (CHAR *) (buf2) + align2; in do_test()
116 do_one_test (impl, s2, s1, len); in do_test()
A Dbench-strncpy.c104 CHAR *s1, *s2; in do_test() local
117 s2 = (CHAR *) (buf2) + align2; in do_test()
129 do_one_test (impl, s2, s1, len, n); in do_test()
A Dbench-memmove.c57 char *s1, *s2; in do_test() local
68 s2 = (char *) (buf2 + align2); in do_test()
80 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
A Dbench-strcpy_chk.c134 char *s1, *s2; in do_test() local
145 s2 = (char *) buf2 + align2; in do_test()
155 do_one_test (impl, s2, s1, len, dlen); in do_test()
A Dbench-strcoll.c172 const char *s2 = *(char **) b; in compare_words() local
173 return strcoll (s1, s2); in compare_words()

Completed in 19 milliseconds