/glibc-2.36/benchtests/ |
D | bench-strcpy_chk.c | 80 size_t i, iters = INNER_LOOP_ITERS8; in do_one_test() local 119 for (i = 0; i < iters; ++i) in do_one_test() 133 size_t i; in do_test() local 147 for (i = 0; i < len; i++) in do_test() 148 s1[i] = 32 + 23 * i % (max_char - 32); in do_test() 164 size_t i; in test_main() local 175 for (i = 0; i < 16; ++i) in test_main() 177 do_test (0, 0, i, i + 1, 127); in test_main() 178 do_test (0, 0, i, i + 1, 255); in test_main() 179 do_test (0, i, i, i + 1, 127); in test_main() [all …]
|
D | bench-strncasecmp.c | 54 size_t i, iters = INNER_LOOP_ITERS; in do_one_test() local 58 for (i = 0; i < iters; ++i) in do_one_test() 73 size_t i; in do_test() local 90 for (i = 0; i < len; i++) in do_test() 92 s1[i] = toupper (1 + 23 * i % max_char); in do_test() 93 s2[i] = tolower (s1[i]); in do_test() 124 size_t i; in test_main() local 144 for (i = 1; i < 16; ++i) in test_main() 146 do_test (&json_ctx, i, i, i - 1, i, 127, 0); in test_main() 148 do_test (&json_ctx, i, i, i, i, 127, 0); in test_main() [all …]
|
D | bench-memcpy.c | 41 size_t i, iters = INNER_LOOP_ITERS; in do_one_test() local 43 for (i = 0; i < iters / 64; ++i) in do_one_test() 48 for (i = 0; i < iters; ++i) in do_one_test() 63 size_t i, j; in do_test() local 79 for (i = 0, j = 1; i < len; i++, j += 23) in do_test() 80 s1[i] = j; in do_test() 104 size_t i; in test_main() local 123 for (i = 0; i < 18; ++i) in test_main() 125 do_test (&json_ctx, 0, 0, 1 << i, 1); in test_main() 126 do_test (&json_ctx, i, 0, 1 << i, 1); in test_main() [all …]
|
D | bench-strncmp.c | 78 size_t i, iters = INNER_LOOP_ITERS8; in do_one_test() local 82 for (i = 0; i < iters; ++i) in do_one_test() 97 size_t i, align_n; in do_test_limit() local 123 for (i = 0; i < n; i++) in do_test_limit() 124 s1[i] = s2[i] = 1 + 23 * i % max_char; in do_test_limit() 147 size_t i; in do_test() local 174 for (i = 0; i < n; i++) in do_test() 175 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % max_char; in do_test() 298 size_t i; in do_test_page() local 303 for (i = 0; i < (page_size / CHARBYTES) - 1; i++) in do_test_page() [all …]
|
D | bench-memmove.c | 35 size_t i, iters = INNER_LOOP_ITERS; in do_one_test() local 37 for (i = 0; i < iters / 64; ++i) in do_one_test() 42 for (i = 0; i < iters; ++i) in do_one_test() 56 size_t i, j; in do_test() local 70 for (i = 0, j = 1; i < len; i++, j += 23) in do_test() 71 s1[i] = j; in do_test() 90 size_t i; in test_main() local 111 for (i = 0; i < 14; ++i) in test_main() 113 do_test (&json_ctx, 0, 32, 1 << i); in test_main() 114 do_test (&json_ctx, 32, 0, 1 << i); in test_main() [all …]
|
D | bench-memchr.c | 62 size_t i, iters = INNER_LOOP_ITERS_LARGE; in do_one_test() local 66 for (i = 0; i < iters; ++i) in do_one_test() 81 size_t i; in do_test() local 89 for (i = 0; i < len; ++i) in do_test() 91 buf[align + i] = 1 + 23 * i % SMALL_CHAR; in do_test() 92 if (buf[align + i] == seek_char) in do_test() 93 buf[align + i] = seek_char + 1; in do_test() 129 size_t i; in test_main() local 152 for (i = 1; i < 8; ++i) in test_main() 154 do_test (&json_ctx, 0, 16 << i, 2048, 23, repeats); in test_main() [all …]
|
D | bench-memcmp.c | 68 size_t i, iters = INNER_LOOP_ITERS_LARGE; in do_one_test() local 72 for (i = 0; i < iters; ++i) in do_one_test() 87 size_t i; in do_test() local 111 for (i = 0; i < len; i++) in do_test() 112 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % MAX_CHAR; in do_test() 131 size_t i; in test_main() local 150 for (i = 1; i < 32; ++i) in test_main() 152 do_test (&json_ctx, i * CHARBYTES, i * CHARBYTES, i, 0); in test_main() 153 do_test (&json_ctx, i * CHARBYTES, i * CHARBYTES, i, 1); in test_main() 154 do_test (&json_ctx, i * CHARBYTES, i * CHARBYTES, i, -1); in test_main() [all …]
|
D | bench-memccpy.c | 44 size_t i, iters = INNER_LOOP_ITERS_LARGE; in do_one_test() local 48 for (i = 0; i < iters; ++i) in do_one_test() 63 size_t i; in do_test() local 77 for (i = 0; i < len - 1; ++i) 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() 84 for (i = len; i + align1 < page_size && i < len + 64; ++i) in do_test() 85 s1[i] = 32 + 32 * i % (max_char - 32); in do_test() 98 size_t i; in test_main() local [all …]
|
D | bench-strncpy.c | 57 size_t i, iters = INNER_LOOP_ITERS_LARGE * (4 / CHARBYTES); in do_one_test() local 77 size_t i; in do_one_test() local 79 for (i = len; i < n; ++i) in do_one_test() 80 if (dst [i] != '\0') in do_one_test() 89 for (i = 0; i < iters; ++i) in do_one_test() 103 size_t i; in do_test() local 119 for (i = 0; i < len; ++i) in do_test() 120 s1[i] = 32 + 23 * i % (max_char - 32); in do_test() 122 for (i = len + 1; (i + align1) * sizeof (CHAR) < page_size && i < len + 64; in do_test() 123 ++i) in do_test() [all …]
|
/glibc-2.36/string/ |
D | test-strncasecmp.c | 85 size_t i; in do_test() local 103 for (i = 0; i < len; i++) in do_test() 105 s1[i] = toupper (1 + 23 * i % max_char); in do_test() 106 s2[i] = tolower (s1[i]); in do_test() 188 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local 217 for (i = 0; i < j; ++i) in do_random_tests() 219 p1[i] = tolower (random () & 255); in do_random_tests() 220 if (i < len1 + align1 && !p1[i]) in do_random_tests() 222 p1[i] = tolower (random () & 255); in do_random_tests() 223 if (!p1[i]) in do_random_tests() [all …]
|
D | test-strncmp.c | 124 size_t i, align_n; in do_test_limit() local 154 for (i = 0; i < n; i++) in do_test_limit() 155 s1[i] = s2[i] = 1 + 23 * i % max_char; in do_test_limit() 175 size_t i, buf_bound; in do_test_n() local 203 for (i = 0; i < buf_bound; i++) in do_test_n() 204 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % max_char; in do_test_n() 258 size_t i, j, n, align1, align2, pos, len1, len2, size; in do_random_tests() local 288 for (i = 0; i < j; ++i) in do_random_tests() 290 p1[i] = random () & 255; in do_random_tests() 291 if (i < len1 + align1 && !p1[i]) in do_random_tests() [all …]
|
D | test-strnlen.c | 52 size_t i; in SIMPLE_STRNLEN() local 54 for (i = 0; i < maxlen && s[i]; ++i); in SIMPLE_STRNLEN() 55 return i; in SIMPLE_STRNLEN() 74 size_t i; in do_test() local 82 for (i = 0; i < len; ++i) in do_test() 83 buf[align + i] = 1 + 11111 * i % max_char; in do_test() 93 size_t i, j, len; in do_overflow_tests() local 97 for (i = 0; i < 750; ++i) in do_overflow_tests() 99 do_test (1, i, SIZE_MAX, BIG_CHAR); in do_overflow_tests() 101 do_test (0, i, SIZE_MAX - i, BIG_CHAR); in do_overflow_tests() [all …]
|
D | test-memcpy.c | 25 size_t i, j, n, align1, align2, len, size1, size2, size; in do_random_tests() local 51 i = random (); in do_random_tests() 52 if (i & 3) in do_random_tests() 54 if (i & 1) in do_random_tests() 56 if (i & 2) in do_random_tests() 58 if (i & 4) in do_random_tests() 85 for (i = 0; i < j; ++i) in do_random_tests() 86 p1[i] = random () & 255; in do_random_tests() 105 for (i = 0; i < align2; ++i) in do_random_tests() 107 if (p2[i] != c) in do_random_tests() [all …]
|
D | test-strcasecmp.c | 65 size_t i; in do_test() local 83 for (i = 0; i < len; i++) in do_test() 85 s1[i] = toupper (1 + 23 * i % max_char); in do_test() 86 s2[i] = tolower (s1[i]); in do_test() 126 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local 155 for (i = 0; i < j; ++i) in do_random_tests() 157 p1[i] = tolower (random () & 255); in do_random_tests() 158 if (i < len1 + align1 && !p1[i]) in do_random_tests() 160 p1[i] = tolower (random () & 255); in do_random_tests() 161 if (!p1[i]) in do_random_tests() [all …]
|
D | test-memchr.c | 76 size_t i; in do_test() local 84 for (i = 0; i < len; ++i) in do_test() 86 buf[align + i] = 1 + 23 * i % SMALL_CHAR; in do_test() 87 if (buf[align + i] == seek_char) in do_test() 88 buf[align + i] = seek_char + 1; in do_test() 111 size_t i, j, len; in do_overflow_tests() local 115 for (i = 0; i < 750; ++i) in do_overflow_tests() 117 do_test (0, i, 751, SIZE_MAX - i, BIG_CHAR); in do_overflow_tests() 118 do_test (0, i, 751, i - buf_addr, BIG_CHAR); in do_overflow_tests() 119 do_test (0, i, 751, -buf_addr - i, BIG_CHAR); in do_overflow_tests() [all …]
|
D | test-memmove.c | 100 size_t i, j; in do_test() local 114 for (i = 0, j = 1; i < len; i++, j += 23) in do_test() 115 s1[i] = j; in do_test() 124 size_t i, n, align1, align2, len, size; in do_random_tests() local 171 for (i = srcstart; i < srcend; ++i) in do_random_tests() 172 p1[i] = random () & 255; in do_random_tests() 204 for (i = dststart; i < dstend; ++i) in do_random_tests() 206 if (i >= align2 && i < align2 + len) in do_random_tests() 208 i = align2 + len - 1; in do_random_tests() 211 if (i >= srcstart && i < srcend) in do_random_tests() [all …]
|
D | test-strchr.c | 116 size_t i; in do_test() local 123 for (i = 0; i < len; ++i) in do_test() 125 buf[align + i] = 32 + 23 * i % max_char; in do_test() 126 if (buf[align + i] == seek_char) in do_test() 127 buf[align + i] = seek_char + 1; in do_test() 128 else if (buf[align + i] == 0) in do_test() 129 buf[align + i] = 1; in do_test() 150 size_t i, j, n, align, pos, len; in do_random_tests() local 178 for (i = 0; i < j; i++) in do_random_tests() 180 if (i == pos + align) in do_random_tests() [all …]
|
/glibc-2.36/debug/ |
D | test-strcpy_chk.c | 122 size_t i; in do_test() local 136 for (i = 0; i < len; i++) in do_test() 137 s1[i] = 32 + 23 * i % (max_char - 32); in do_test() 147 size_t i, j, n, align1, align2, len, dlen; in do_random_tests() local 168 for (i = 0; i < j; i++) in do_random_tests() 170 if (i == len + align1) in do_random_tests() 171 p1[i] = 0; in do_random_tests() 174 p1[i] = random () & 255; in do_random_tests() 175 if (i >= align1 && i < len + align1 && !p1[i]) in do_random_tests() 176 p1[i] = (random () & 127) + 3; in do_random_tests() [all …]
|
/glibc-2.36/sysdeps/x86_64/multiarch/ |
D | ifunc-impl-list.c | 35 size_t i = max; in __libc_ifunc_impl_list() local 38 IFUNC_IMPL (i, name, __memcmpeq, in __libc_ifunc_impl_list() 39 X86_IFUNC_IMPL_ADD_V4 (array, i, __memcmpeq, in __libc_ifunc_impl_list() 44 X86_IFUNC_IMPL_ADD_V3 (array, i, __memcmpeq, in __libc_ifunc_impl_list() 48 X86_IFUNC_IMPL_ADD_V3 (array, i, __memcmpeq, in __libc_ifunc_impl_list() 55 X86_IFUNC_IMPL_ADD_V2 (array, i, __memcmpeq, in __libc_ifunc_impl_list() 60 IFUNC_IMPL (i, name, memchr, in __libc_ifunc_impl_list() 61 X86_IFUNC_IMPL_ADD_V4 (array, i, memchr, in __libc_ifunc_impl_list() 66 X86_IFUNC_IMPL_ADD_V4 (array, i, memchr, in __libc_ifunc_impl_list() 71 X86_IFUNC_IMPL_ADD_V3 (array, i, memchr, in __libc_ifunc_impl_list() [all …]
|
/glibc-2.36/sysdeps/i386/i686/multiarch/ |
D | ifunc-impl-list.c | 32 size_t i = max; in __libc_ifunc_impl_list() local 35 IFUNC_IMPL (i, name, memchr, in __libc_ifunc_impl_list() 36 IFUNC_IMPL_ADD (array, i, memchr, CPU_FEATURE_USABLE (SSE2), in __libc_ifunc_impl_list() 38 IFUNC_IMPL_ADD (array, i, memchr, CPU_FEATURE_USABLE (SSE2), in __libc_ifunc_impl_list() 40 IFUNC_IMPL_ADD (array, i, memchr, 1, __memchr_ia32)) in __libc_ifunc_impl_list() 43 IFUNC_IMPL (i, name, memcmp, in __libc_ifunc_impl_list() 44 IFUNC_IMPL_ADD (array, i, memcmp, CPU_FEATURE_USABLE (SSE4_2), in __libc_ifunc_impl_list() 46 IFUNC_IMPL_ADD (array, i, memcmp, CPU_FEATURE_USABLE (SSSE3), in __libc_ifunc_impl_list() 48 IFUNC_IMPL_ADD (array, i, memcmp, 1, __memcmp_ia32)) in __libc_ifunc_impl_list() 52 IFUNC_IMPL (i, name, __memmove_chk, in __libc_ifunc_impl_list() [all …]
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | tst-pkey.c | 76 for (int i = 0; i < key_count; ++i) in check_page_access() local 77 saved_rights[i] = pkey_get (keys[i]); in check_page_access() 107 for (int i = 0; i < key_count; ++i) in check_page_access() local 108 TEST_COMPARE (pkey_set (keys[i], saved_rights[i]), 0); in check_page_access() 121 for (int i = 0; i < key_count; ++i) in sigusr1_handler() local 122 TEST_VERIFY (pkey_get (keys[i]) == PKEY_DISABLE_ACCESS in sigusr1_handler() 123 || pkey_get (keys[i]) == i); in sigusr1_handler() 139 for (int i = 0; i < key_count; ++i) in get_thread_func() local 140 result->access_rights[i] = pkey_get (keys[i]); in get_thread_func() 159 for (int i = 0; i < key_count; ++i) in delayed_thread_func() local [all …]
|
D | syscalls.list | 3 alarm - alarm i:i alarm 4 bdflush EXTRA bdflush i:ii __compat_bdflush bdflush@GLIBC_2.0:GLIBC_2.23 5 capget EXTRA capget i:pp capget 6 capset EXTRA capset i:pp capset 9 epoll_create EXTRA epoll_create i:i epoll_create 10 epoll_create1 EXTRA epoll_create1 i:i epoll_create1 11 epoll_ctl EXTRA epoll_ctl i:iiip epoll_ctl 12 eventfd EXTRA eventfd2 i:ii eventfd 13 execve - execve i:spp __execve execve 14 flock - flock i:ii __flock flock [all …]
|
/glibc-2.36/sysdeps/s390/multiarch/ |
D | ifunc-impl-list.c | 76 size_t i = max; in __libc_ifunc_impl_list() local 89 IFUNC_IMPL (i, name, memset, in __libc_ifunc_impl_list() 91 IFUNC_IMPL_ADD (array, i, memset, in __libc_ifunc_impl_list() 95 IFUNC_IMPL_ADD (array, i, memset, in __libc_ifunc_impl_list() 99 IFUNC_IMPL_ADD (array, i, memset, 1, MEMSET_Z900_G5) in __libc_ifunc_impl_list() 105 IFUNC_IMPL (i, name, memcmp, in __libc_ifunc_impl_list() 107 IFUNC_IMPL_ADD (array, i, memcmp, in __libc_ifunc_impl_list() 111 IFUNC_IMPL_ADD (array, i, memcmp, in __libc_ifunc_impl_list() 115 IFUNC_IMPL_ADD (array, i, memcmp, 1, MEMCMP_Z900_G5) in __libc_ifunc_impl_list() 121 IFUNC_IMPL (i, name, memcpy, in __libc_ifunc_impl_list() [all …]
|
/glibc-2.36/sysdeps/powerpc/powerpc64/multiarch/ |
D | ifunc-impl-list.c | 29 size_t i = max; in __libc_ifunc_impl_list() local 51 IFUNC_IMPL (i, name, memcpy, in __libc_ifunc_impl_list() 53 IFUNC_IMPL_ADD (array, i, memcpy, in __libc_ifunc_impl_list() 58 IFUNC_IMPL_ADD (array, i, memcpy, hwcap2 & PPC_FEATURE2_ARCH_2_07 in __libc_ifunc_impl_list() 61 IFUNC_IMPL_ADD (array, i, memcpy, hwcap & PPC_FEATURE_ARCH_2_06 in __libc_ifunc_impl_list() 64 IFUNC_IMPL_ADD (array, i, memcpy, hwcap & PPC_FEATURE_ARCH_2_06, in __libc_ifunc_impl_list() 66 IFUNC_IMPL_ADD (array, i, memcpy, hwcap & PPC_FEATURE_ARCH_2_05, in __libc_ifunc_impl_list() 68 IFUNC_IMPL_ADD (array, i, memcpy, hwcap & PPC_FEATURE_CELL_BE, in __libc_ifunc_impl_list() 70 IFUNC_IMPL_ADD (array, i, memcpy, hwcap & PPC_FEATURE_POWER4, in __libc_ifunc_impl_list() 72 IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_ppc)) in __libc_ifunc_impl_list() [all …]
|
/glibc-2.36/sysdeps/ieee754/dbl-64/ |
D | k_rem_pio2.c | 161 int32_t jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih; in __kernel_rem_pio2() local 176 for (i = 0; i <= m; i++, j++) in __kernel_rem_pio2() 177 f[i] = (j < 0) ? zero : (double) ipio2[j]; in __kernel_rem_pio2() 180 for (i = 0; i <= jk; i++) in __kernel_rem_pio2() 183 fw += x[j] * f[jx + i - j]; in __kernel_rem_pio2() 184 q[i] = fw; in __kernel_rem_pio2() 190 for (i = 0, j = jz, z = q[jz]; j > 0; i++, j--) in __kernel_rem_pio2() 193 iq[i] = (int32_t) (z - two24 * fw); in __kernel_rem_pio2() 205 i = (iq[jz - 1] >> (24 - q0)); n += i; in __kernel_rem_pio2() 206 iq[jz - 1] -= i << (24 - q0); in __kernel_rem_pio2() [all …]
|