Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 23 of 23) sorted by relevance

/benchtests/
A Dbench-strncmp.c42 c1 = *s1++; in simple_wcsncmp()
62 && *s1++); in simple_strncmp()
98 CHAR *s1, *s2; in do_test_limit() local
118 s1 = (CHAR *) ((char *) s1 - (align_n - align1)); in do_test_limit()
128 s1[len] = 0; in do_test_limit()
148 CHAR *s1, *s2; in do_test() local
184 s1[len] = 64; in do_test()
253 CHAR *s1; in do_one_test_page() local
261 s1 += offset1; in do_one_test_page()
304 s1[i] = 23; in do_test_page()
[all …]
A Dbench-strcasecmp.c35 while ((ret = ((unsigned char) tolower (*s1) in simple_strcasecmp()
37 && *s1++) 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
88 s1 = (char *) (buf1 + align1); in do_test()
94 s2[i] = tolower (s1[i]); in do_test()
97 s1[len] = s2[len] = 0; in do_test()
98 s1[len + 1] = 23; in do_test()
102 s1[len - 1] += exp_result; in do_test()
[all …]
A Dbench-strcmp.c43 c1 = *s1++; in simple_wcscmp()
64 simple_strcmp (const char *s1, const char *s2) in simple_strcmp() argument
68 while ((ret = *(unsigned char *) s1 - *(unsigned char*) s2++) == 0 && *s1++); in simple_strcmp()
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()
130 s1[len + 1] = 23; in do_test()
176 memset (s1, 'a', page_size); in do_test_page_boundary()
179 s1[(page_size / CHARBYTES) - 1] = (CHAR) 0; in do_test_page_boundary()
[all …]
A Dbench-strstr.c57 return (char*)s1; in basic_strstr()
59 for ( ; s1[0] != '\0'; s1++) in basic_strstr()
61 if (s1[0] != c) in basic_strstr()
64 if (s1[i] != s2[i]) in basic_strstr()
67 return (char*)s1; in basic_strstr()
140 res = CALL (impl, s1, s2); in do_one_test()
161 char *s1 = (char *) (buf1 + align1); in do_test() local
181 char *ss1 = s1; in do_test()
190 memcpy (s1 + len1 - len2, s2, len2); in do_test()
191 s1[len1] = '\0'; in do_test()
[all …]
A Dbench-strncasecmp.c38 while ((ret = ((unsigned char) tolower (*s1) in simple_strncasecmp()
40 && *s1++) in simple_strncasecmp()
59 CALL (impl, s1, s2, n); in do_one_test()
73 char *s1, *s2; in do_test() local
86 s1 = (char *) (buf1 + align1); in do_test()
91 s1[i] = toupper (1 + 23 * i % max_char); in do_test()
92 s2[i] = tolower (s1[i]); in do_test()
95 s1[len] = s2[len] = 0; in do_test()
96 s1[len + 1] = 23; in do_test()
100 s1[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
52 while (n-- && (ret = *(unsigned char *) s1++ - *(unsigned char *) s2++) == 0); in SIMPLE_MEMCMP()
65 do_one_test (json_ctx_t *json_ctx, impl_t *impl, const CHAR *s1, in do_one_test() argument
74 CALL (impl, s1, s2, len); in do_one_test()
88 CHAR *s1, *s2; in do_test() local
108 s1 = (CHAR *)(buf1 + align1); in do_test()
112 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % MAX_CHAR; in do_test()
114 s1[len] = align1; in do_test()
[all …]
A Dbench-strsep.c24 simple_strsep (char **s1, char *s2) in simple_strsep() argument
30 begin = *s1; in simple_strsep()
42 *s1 = s + 1; in simple_strsep()
48 *s1 = NULL; in simple_strsep()
104 do_one_test (impl_t * impl, const char *s1, const char *s2) in do_one_test() argument
112 const char *s1a = s1; in do_one_test()
146 char *s1 = (char *) (buf1 + align1); in do_test() local
147 memset (s1, '0', len1); in do_test()
149 s1[len1 / 2] = '1'; in do_test()
150 s1[len1] = '\0'; in do_test()
[all …]
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()
59 char *s1 = (char *) (buf1 + align1); in do_test() local
74 char *ss1 = s1; in do_test()
85 memset (s1, '0', len1); in do_test()
87 s1[len1 - len2 + i] = toupper (s2[i]); in do_test()
89 s1[len1] = '\0'; in do_test()
95 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test()
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()
100 char *s1 = (char *) (buf1 + align1); in do_test() local
103 char *ss1 = s1; in do_test()
114 memset (s1, '0', len1); 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()
119 s1[len1] = '\0'; in do_test()
120 do_one_test (impl, s1, s2); in do_test()
A Dbench-memccpy.c64 char *s1, *s2; in do_test() local
74 s1 = (char *) (buf1 + align1); in do_test()
79 s1[i] = 32 + 23 * i % (max_char - 32); in do_test()
80 if (s1[i] == (char) c) in do_test()
81 --s1[i]; in do_test()
83 s1[len - 1] = c; in do_test()
85 s1[i] = 32 + 32 * i % (max_char - 32); in do_test()
90 do_one_test (impl, s2, s1, c, len, n); in do_test()
A Dbench-memmove-walk.c75 char *s1, *s2, *tmp; in do_test() local
78 s1 = (char *) (buf1); in do_test()
81 s2 = s1; in do_test()
93 json_attr_uint (json_ctx, "dst > src", (double) (s2 > s1)); in do_test()
103 tmp = s1; in do_test()
104 s1 = s2; in do_test()
A Dbench-memcpy-large.c59 char *s1, *s2; in do_test() local
69 s1 = (char *) (buf1 + align1); in do_test()
75 s1[i] = j; 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()
90 s1 = (char *) (buf2 + align1); in do_test()
A Dbench-strncpy.c104 CHAR *s1, *s2; in do_test() local
116 s1 = (CHAR *) (buf1) + align1; in do_test()
120 s1[i] = 32 + 23 * i % (max_char - 32); in do_test()
121 s1[len] = 0; in do_test()
124 s1[i] = 32 + 32 * i % (max_char - 32); in do_test()
129 do_one_test (impl, s2, s1, len, n); in do_test()
A Dbench-memcpy-walk.c72 char *s1, *s2; in do_test() local
74 s1 = (char *) (buf1); 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()
90 s1 = (char *) (buf2); in do_test()
A Dbench-strcat.c90 CHAR *s1, *s2; in do_test() local
100 s1 = (CHAR *) (buf1) + align1; in do_test()
104 s1[i] = 32 + 23 * i % (max_char - 32); in do_test()
105 s1[len1] = '\0'; in do_test()
115 do_one_test (impl, s2, s1); in do_test()
A Dbench-strcpy.c93 CHAR *s1, *s2; in do_test() local
105 s1 = (CHAR *) (buf1) + align1; in do_test()
109 s1[i] = 32 + 23 * i % (max_char - 32); in do_test()
110 s1[len] = 0; in do_test()
116 do_one_test (impl, s2, s1, len); in do_test()
A Dbench-memcpy.c64 char *s1, *s2; in do_test() local
74 s1 = (char *) (buf1 + align1); in do_test()
80 s1[i] = j; 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()
95 s1 = (char *) (buf2 + align1); in do_test()
A Dbench-strncat.c99 CHAR *s1, *s2; in do_test() local
111 s1 = (CHAR *) (buf1) + align1; in do_test()
115 s1[i] = 32 + 23 * i % (max_char - 32); in do_test()
116 s1[len1] = '\0'; in do_test()
127 do_one_test (impl, s2, s1, n); in do_test()
A Dbench-memmove-large.c55 char *s1, *s2; in do_test() local
65 s1 = (char *) (buf2 + align1); in do_test()
69 s1[i] = j; in do_test()
78 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
A Dbench-strcpy_chk.c134 char *s1, *s2; in do_test() local
144 s1 = (char *) buf1 + align1; in do_test()
148 s1[i] = 32 + 23 * i % (max_char - 32); in do_test()
149 s1[len] = 0; in do_test()
155 do_one_test (impl, s2, s1, len, dlen); in do_test()
A Dbench-memmove.c57 char *s1, *s2; in do_test() local
67 s1 = (char *) (buf2 + align1); in do_test()
71 s1[i] = j; in do_test()
80 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
A Dbench-strnlen.c43 const CHAR *s1 = MEMCHR (s, 0, maxlen); in memchr_strnlen() local
44 return (s1 == NULL) ? maxlen : s1 - s; in memchr_strnlen()
A Dbench-strcoll.c171 const char *s1 = *(char **) a; in compare_words() local
173 return strcoll (s1, s2); in compare_words()

Completed in 50 milliseconds