Home
last modified time | relevance | path

Searched refs:BUF1PAGES (Results 1 – 12 of 12) sorted by relevance

/glibc-2.36/benchtests/
Dbench-memmem.c21 #define BUF1PAGES 20 macro
142 json_attr_uint (json_ctx, "len_haystack", BUF1PAGES * page_size); in do_test()
151 do_one_test (json_ctx, impl, buf1, BUF1PAGES * page_size, str, len, in do_test()
169 size_t idx = MIN ((2 << shift) * 64 + rel, BUF1PAGES * page_size - 2); in do_random_tests()
171 len = MIN (len, BUF1PAGES * page_size - idx - 1); in do_random_tests()
182 json_attr_uint (json_ctx, "len_haystack", BUF1PAGES * page_size); in do_random_tests()
191 do_one_test (json_ctx, impl, buf1, BUF1PAGES * page_size, buf1 + idx, in do_random_tests()
231 for (i = 0; i < BUF1PAGES * page_size; ++i) in test_main()
Dbench-string.h234 # ifndef BUF1PAGES
235 # define BUF1PAGES 1 macro
250 buf1_size = BUF1PAGES * page_size; in init_sizes()
Dbench-strcmp.c181 CHAR *s1 = (CHAR *) (buf1 + (BUF1PAGES - 1) * page_size); in do_test_page_boundary()
182 CHAR *s2 = (CHAR *) (buf2 + (BUF1PAGES - 1) * page_size); in do_test_page_boundary()
Dbench-strncmp.c221 CHAR *s1 = (CHAR *) (buf1 + (BUF1PAGES - 1) * page_size); in do_test_page_boundary()
222 CHAR *s2 = (CHAR *) (buf2 + (BUF1PAGES - 1) * page_size); in do_test_page_boundary()
/glibc-2.36/string/
Dtest-memmem.c21 #define BUF1PAGES 20 macro
94 do_one_test (impl, buf1, BUF1PAGES * page_size, str, len, buf1 + idx); in do_test()
108 size_t idx = MIN ((2 << shift) * 64 + rel, BUF1PAGES * page_size - 2); in do_random_tests()
110 len = MIN (len, BUF1PAGES * page_size - idx - 1); in do_random_tests()
121 do_one_test (impl, buf1, BUF1PAGES * page_size, buf1 + idx, len, in do_random_tests()
167 for (i = 0; i < BUF1PAGES * page_size; ++i) in test_main()
Dtest-string.h181 #ifndef BUF1PAGES
182 # define BUF1PAGES 1 macro
199 buf1 = mmap (0, (BUF1PAGES + 1) * page_size, PROT_READ | PROT_WRITE, in test_init()
203 if (mprotect (buf1 + BUF1PAGES * page_size, page_size, PROT_NONE)) in test_init()
217 memset (buf1, 0xa5, BUF1PAGES * page_size); in test_init()
Dtst-strtok_r.c20 #define BUF1PAGES 1 macro
Dtest-strcmp.c340 CHAR *s1 = (CHAR *) (buf1 + (BUF1PAGES - 1) * page_size); in check2()
341 CHAR *s2 = (CHAR *) (buf2 + (BUF1PAGES - 1) * page_size); in check2()
Dtest-strncpy.c147 s1 = (CHAR *) buf1 + BUF1PAGES * page_size / sizeof(CHAR) - maxoffset; in do_page_tests()
Dtest-strncmp.c402 CHAR *s1 = (CHAR *) (buf1 + (BUF1PAGES - 1) * page_size); in check3()
403 CHAR *s2 = (CHAR *) (buf2 + (BUF1PAGES - 1) * page_size); in check3()
Dtest-strncasecmp.c150 s1 = (char *) buf1 + BUF1PAGES * page_size - maxoffset; in do_page_tests()
/glibc-2.36/ChangeLog.old/
DChangeLog.176626 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6627 (test_init): Size buf1 according to BUF1PAGES.