/glibc-2.36/string/ |
D | test-memccpy.c | 63 do_test (size_t align1, size_t align2, int c, size_t len, size_t n, in do_test() argument 69 align1 &= 7; in do_test() 70 if (align1 + len >= page_size) in do_test() 77 s1 = (char *) (buf1 + align1); in do_test() 87 for (i = len; i + align1 < page_size && i < len + 64; ++i) in do_test() 97 size_t i, j, n, align1, align2, len, size, mode; in do_random_tests() local 109 align1 = 512 - size - (random () & 15); in do_random_tests() 111 align2 = align1 - (random () & 24); in do_random_tests() 113 align2 = align1 - (random () & 31); in do_random_tests() 116 j = align1; in do_random_tests() [all …]
|
D | test-strncpy.c | 111 do_test (size_t align1, size_t align2, size_t len, size_t n, int max_char) in do_test() argument 118 align1 &= 7; in do_test() 119 if ((align1 + len) * sizeof (CHAR) >= page_size) in do_test() 126 s1 = (CHAR *) (buf1) + align1; in do_test() 132 for (i = len + 1; (i + align1) * sizeof (CHAR) < page_size && i < len + 64; in do_test() 177 size_t i, j, n, align1, align2, len, size, mode; in do_random_tests() local 192 align1 = 512 - size - (random () & 15); in do_random_tests() 194 align2 = align1 - (random () & 24); in do_random_tests() 196 align2 = align1 - (random () & 31); in do_random_tests() 199 j = align1; in do_random_tests() [all …]
|
D | test-strcat.c | 93 do_test (size_t align1, size_t align2, size_t len1, size_t len2, int max_char) in do_test() argument 98 align1 &= 7; in do_test() 99 if ((align1 + len1) * sizeof (CHAR) >= page_size) in do_test() 106 s1 = (CHAR *) (buf1) + align1; in do_test() 126 size_t i, j, n, align1, align2, len1, len2; in do_random_tests() local 134 align1 = random () & 31; in do_random_tests() 138 align2 = align1 + (random () & 24); in do_random_tests() 145 j = align1; in do_random_tests() 152 if (align1 + len1 < 512 - 8) in do_random_tests() 154 j = 510 - align1 - len1 - (random () & 31); in do_random_tests() [all …]
|
D | test-strcpy.c | 94 do_test (size_t align1, size_t align2, size_t len, int max_char) in do_test() argument 101 align1 &= 7; in do_test() 102 if ((align1 + len) * sizeof (CHAR) >= page_size) in do_test() 109 s1 = (CHAR *) (buf1) + align1; in do_test() 123 size_t i, j, n, align1, align2, len; in do_random_tests() local 136 align1 = random () & (63 / sizeof (CHAR)); in do_random_tests() 140 align2 = align1 + (random () & 24); in do_random_tests() 142 j = align1; in do_random_tests() 147 j = len + align1 + 64; in do_random_tests() 152 if (i == len + align1) in do_random_tests() [all …]
|
D | test-memcpy.c | 25 size_t i, j, n, align1, align2, len, size1, size2, size; in do_random_tests() local 38 align1 = 512; in do_random_tests() 61 align1 = size1 - len - (random () & 31); in do_random_tests() 63 if (align1 > size1) in do_random_tests() 64 align1 = 0; in do_random_tests() 70 align1 = random () & 63; in do_random_tests() 73 if (align1 + len > size1) in do_random_tests() 74 align1 = size1 - len; in do_random_tests() 82 j = align1 + len + 256; in do_random_tests() 95 (char *)(p1 + align1), len); in do_random_tests() [all …]
|
D | test-strncat.c | 99 do_test (size_t align1, size_t align2, size_t len1, size_t len2, in do_test() argument 105 align1 &= 7; in do_test() 106 if ((align1 + len1) * sizeof (CHAR) >= page_size) in do_test() 108 if ((align1 + n) * sizeof (CHAR) > page_size) in do_test() 115 s1 = (CHAR *) (buf1) + align1; in do_test() 195 size_t i, j, n, align1, align2, len1, len2, N; in do_random_tests() local 205 align1 = random () & 31; in do_random_tests() 209 align2 = align1 + (random () & 24); in do_random_tests() 216 j = align1; in do_random_tests() 223 if (align1 + len1 < 512 - 8) in do_random_tests() [all …]
|
D | test-strcasecmp.c | 62 do_test (size_t align1, size_t align2, size_t len, int max_char, in do_test() argument 72 align1 &= getpagesize () - 1; in do_test() 73 if (align1 + (len + 1) >= page_size) in do_test() 80 s1 = (char *) (buf1 + align1); in do_test() 126 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local 134 align1 = random () & 31; in do_random_tests() 138 align2 = align1 + (random () & 24); in do_random_tests() 140 j = align1 > align2 ? align1 : align2; in do_random_tests() 152 j = (pos > len2 ? pos : len2) + align1 + 64; in do_random_tests() 158 if (i < len1 + align1 && !p1[i]) in do_random_tests() [all …]
|
D | test-memmove.c | 98 do_test (size_t align1, size_t align2, size_t len) in do_test() argument 103 align1 &= (getpagesize() - 1); in do_test() 104 if (align1 + len >= page_size) in do_test() 111 s1 = (char *) (buf1 + align1); in do_test() 118 do_one_test (impl, s2, (char *) (buf2 + align1), s1, len); in do_test() 124 size_t i, n, align1, align2, len, size; in do_random_tests() local 143 align1 = size - len - (random () & 31); in do_random_tests() 145 if (align1 > size) in do_random_tests() 146 align1 = 0; in do_random_tests() 152 align1 = random () & (size / 2 - 1); in do_random_tests() [all …]
|
D | test-memcpy-support.h | 77 do_test (size_t align1, size_t align2, size_t len) in do_test() argument 82 align1 &= 4095; in do_test() 83 if (align1 + len >= page_size) in do_test() 90 s1 = (char *)(buf1 + align1); in do_test() 100 s1 = (char *) (buf2 + align1); in do_test() 106 do_test1 (size_t align1, size_t align2, size_t size) in do_test1() argument 111 align1 &= (page_size - 1); in do_test1() 112 if (align1 == 0) in do_test1() 113 align1 = page_size; in do_test1() 133 unaligned_uint32_t *dest = large_buf + align1; in do_test1() [all …]
|
D | test-strcmp.c | 133 do_test (size_t align1, size_t align2, size_t len, int max_char, in do_test() argument 143 align1 &= ~(CHARBYTES - 1); in do_test() 146 align1 &= getpagesize () - 1; in do_test() 147 if (align1 + (len + 1) * CHARBYTES >= page_size) in do_test() 155 i = align1 + CHARBYTES * (len + 2); in do_test() 156 s1 = (CHAR *)(buf1 + ((page_size - i) / 16 * 16) + align1); in do_test() 186 size_t align1 = random () & 31; in do_random_tests() local 191 align2 = align1 + (random () & 24); in do_random_tests() 193 size_t j = align1 > align2 ? align1 : align2; in do_random_tests() 206 j = (pos > len2 ? pos : len2) + align1 + 64; in do_random_tests() [all …]
|
D | test-memcmp.c | 115 do_test (size_t align1, size_t align2, size_t len, int exp_result) in do_test() argument 123 align1 &= (4096 - CHARBYTES); in do_test() 124 if (align1 + (len + 1) * CHARBYTES >= page_size) in do_test() 131 s1 = (CHAR *) (buf1 + align1); in do_test() 137 s1[len] = align1; in do_test() 148 size_t i, j, n, align1, align2, pos, len; in do_random_tests() local 156 align1 = random () & 31; in do_random_tests() 160 align2 = align1 + (random () & 24); in do_random_tests() 162 j = align1; in do_random_tests() 170 j = len + align1 + 64; in do_random_tests() [all …]
|
D | test-strncasecmp.c | 82 do_test (size_t align1, size_t align2, size_t n, size_t len, int max_char, in do_test() argument 91 align1 &= getpagesize () - 1; in do_test() 92 if (align1 + (len + 2) >= page_size) in do_test() 100 s1 = (char *) (buf1 + align1); in do_test() 188 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local 196 align1 = random () & 31; in do_random_tests() 200 align2 = align1 + (random () & 24); in do_random_tests() 202 j = align1 > align2 ? align1 : align2; in do_random_tests() 214 j = (pos > len2 ? pos : len2) + align1 + 64; in do_random_tests() 220 if (i < len1 + align1 && !p1[i]) in do_random_tests() [all …]
|
D | test-strncmp.c | 121 do_test_limit (size_t align1, size_t align2, size_t len, size_t n, int max_char, in do_test_limit() argument 127 align1 &= ~(CHARBYTES - 1); in do_test_limit() 141 align1 &= 15; in do_test_limit() 148 if (align1 < align_n) in do_test_limit() 149 s1 = (CHAR *) ((char *) s1 - (align_n - align1)); in do_test_limit() 172 do_test_n (size_t align1, size_t align2, size_t len, size_t n, int n_in_bounds, in do_test_n() argument 178 align1 &= ~(CHARBYTES - 1); in do_test_n() 186 align1 &= getpagesize () - 1; in do_test_n() 187 if (align1 + (buf_bound + 2) * CHARBYTES >= page_size) in do_test_n() 194 s1 = (CHAR *)(buf1 + align1); in do_test_n() [all …]
|
D | test-memcpy-large.c | 25 size_t i, align1, align2, size; in do_random_large_tests() local 28 align1 = random (); in do_random_large_tests() 31 do_test1 (align1, align2, size); in do_random_large_tests() 36 align1 = random (); in do_random_large_tests() 39 do_test1 (align1, align2, size); in do_random_large_tests()
|
/glibc-2.36/debug/ |
D | test-strcpy_chk.c | 120 do_test (size_t align1, size_t align2, size_t len, size_t dlen, int max_char) in do_test() argument 125 align1 &= 7; in do_test() 126 if (align1 + len >= page_size) in do_test() 133 s1 = (char *) buf1 + align1; in do_test() 147 size_t i, j, n, align1, align2, len, dlen; in do_random_tests() local 154 align1 = random () & 31; in do_random_tests() 158 align2 = align1 + (random () & 24); in do_random_tests() 160 j = align1; in do_random_tests() 165 j = len + align1 + 64; in do_random_tests() 170 if (i == len + align1) in do_random_tests() [all …]
|
/glibc-2.36/benchtests/ |
D | bench-strcmp.c | 102 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test() argument 112 align1 &= ~(CHARBYTES - 1); in do_test() 115 align1 &= (getpagesize () - 1); in do_test() 116 if (align1 + (len + 1) * CHARBYTES >= page_size) in do_test() 126 i = align1 + CHARBYTES * (len + 2); in do_test() 127 align1 = ((page_size - i) / 16 * 16) + align1; in do_test() 132 s1 = (CHAR *)(buf1 + align1); in do_test() 145 json_attr_uint (json_ctx, "align1", (double)align1); in do_test() 158 size_t align1, size_t align2, size_t len, in do_one_test_page_boundary() argument 163 json_attr_uint (json_ctx, "align1", (double) align1); in do_one_test_page_boundary() [all …]
|
D | bench-strncmp.c | 94 do_test_limit (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test_limit() argument 100 align1 &= 15; in do_test_limit() 107 json_attr_uint (json_ctx, "align1", (double) align1); in do_test_limit() 117 if (align1 < align_n) in do_test_limit() 118 s1 = (CHAR *) ((char *) s1 - (align_n - align1)); in do_test_limit() 144 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, size_t in do_test() argument 153 align1 &= getpagesize () - 1; in do_test() 154 if (align1 + (n + 1) * CHARBYTES >= page_size) in do_test() 164 json_attr_uint (json_ctx, "align1", (double)align1); in do_test() 171 s1 = (CHAR *)(buf1 + align1); in do_test() [all …]
|
D | bench-memcpy-large.c | 55 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test() argument 61 align1 &= 4095; in do_test() 62 if (align1 + len >= page_size) in do_test() 69 s1 = (char *) (buf1 + align1); in do_test() 79 json_attr_uint (json_ctx, "align1", (double) align1); in do_test() 90 s1 = (char *) (buf2 + align1); in do_test()
|
D | bench-memccpy.c | 60 do_test (size_t align1, size_t align2, int c, size_t len, size_t n, in do_test() argument 66 align1 &= 7; in do_test() 67 if (align1 + len >= page_size) in do_test() 74 s1 = (char *) (buf1 + align1); in do_test() 84 for (i = len; i + align1 < page_size && i < len + 64; ++i) in do_test() 87 printf ("Length %4zd, n %4zd, char %d, alignment %2zd/%2zd:", len, n, c, align1, align2); in do_test()
|
D | bench-memmove-large.c | 52 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len) in do_test() argument 57 align1 &= 127; in do_test() 58 if (align1 + len >= page_size) in do_test() 65 s1 = (char *) (buf2 + align1); in do_test() 73 json_attr_uint (json_ctx, "align1", (double) align1); in do_test()
|
D | bench-strncat.c | 95 do_test (size_t align1, size_t align2, size_t len1, size_t len2, in do_test() argument 101 align1 &= 7; in do_test() 102 if ((align1 + len1) * sizeof (CHAR) >= page_size) in do_test() 104 if ((align1 + n) * sizeof (CHAR) > page_size) in do_test() 111 s1 = (CHAR *) (buf1) + align1; in do_test() 122 len1, len2, align1, align2, n); in do_test()
|
D | bench-strncpy.c | 101 do_test (size_t align1, size_t align2, size_t len, size_t n, int max_char) in do_test() argument 108 align1 &= 7; in do_test() 109 if ((align1 + len) * sizeof (CHAR) >= page_size) in do_test() 116 s1 = (CHAR *) (buf1) + align1; in do_test() 122 for (i = len + 1; (i + align1) * sizeof (CHAR) < page_size && i < len + 64; in do_test() 126 printf ("Length %4zd, n %4zd, alignment %2zd/%2zd:", len, n, align1, align2); in do_test()
|
D | bench-memcmp.c | 84 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test() argument 93 align1 &= (4096 - CHARBYTES); in do_test() 94 if (align1 + (len + 1) * CHARBYTES >= page_size) in do_test() 103 json_attr_uint (json_ctx, "align1", (double) align1); in do_test() 108 s1 = (CHAR *)(buf1 + align1); in do_test() 114 s1[len] = align1; in do_test()
|
D | bench-strcat.c | 87 do_test (size_t align1, size_t align2, size_t len1, size_t len2, int max_char) in do_test() argument 92 align1 &= 7; in do_test() 93 if ((align1 + len1) * sizeof (CHAR) >= page_size) in do_test() 100 s1 = (CHAR *) (buf1) + align1; in do_test() 110 printf ("Length %4zd/%4zd, alignment %2zd/%2zd:", len1, len2, align1, align2); in do_test()
|
D | bench-strcpy.c | 90 do_test (size_t align1, size_t align2, size_t len, int max_char) in do_test() argument 97 align1 &= 7; in do_test() 98 if ((align1 + len) * sizeof (CHAR) >= page_size) in do_test() 105 s1 = (CHAR *) (buf1) + align1; in do_test() 113 align1 * sizeof (CHAR), align2 * sizeof (CHAR)); in do_test()
|