Lines Matching refs:i
106 size_t i; in do_test() local
122 for (i = 0; i < len1; ++i) in do_test()
123 s1[i] = 32 + 23 * i % (max_char - 32); in do_test()
126 for (i = 0; i < len2; i++) in do_test()
127 s2[i] = 32 + 23 * i % (max_char - 32); in do_test()
139 size_t i, j, len; in do_overflow_tests() local
149 for (i = 0; i < 750; ++i) { in do_overflow_tests()
150 for (j = 0; j < i; ++j) in do_overflow_tests()
152 s1[i] = '\0'; in do_overflow_tests()
157 do_one_test (impl, s2, s1, SIZE_MAX - i); in do_overflow_tests()
159 do_one_test (impl, s2, s1, i - s1_addr); in do_overflow_tests()
161 do_one_test (impl, s2, s1, -s1_addr - i); in do_overflow_tests()
163 do_one_test (impl, s2, s1, SIZE_MAX - s1_addr - i); in do_overflow_tests()
165 do_one_test (impl, s2, s1, SIZE_MAX - s1_addr + i); in do_overflow_tests()
175 do_one_test (impl, s2, s1, len - i); in do_overflow_tests()
177 do_one_test (impl, s2, s1, len + i); in do_overflow_tests()
179 do_one_test (impl, s2, s1, len - s1_addr - i); in do_overflow_tests()
181 do_one_test (impl, s2, s1, len - s1_addr + i); in do_overflow_tests()
184 do_one_test (impl, s2, s1, ~len - i); in do_overflow_tests()
186 do_one_test (impl, s2, s1, ~len + i); in do_overflow_tests()
188 do_one_test (impl, s2, s1, ~len - s1_addr - i); in do_overflow_tests()
190 do_one_test (impl, s2, s1, ~len - s1_addr + i); in do_overflow_tests()
199 size_t i, j, n, align1, align2, len1, len2, N; in do_random_tests() local
236 for (i = 0; i < j; i++) in do_random_tests()
238 if (i == len1 + align1) in do_random_tests()
239 p1[i] = 0; in do_random_tests()
242 p1[i] = random () & BIG_CHAR; in do_random_tests()
243 if (i >= align1 && i < len1 + align1 && !p1[i]) in do_random_tests()
244 p1[i] = (random () & SMALL_CHAR) + 3; in do_random_tests()
247 for (i = 0; i < len2; i++) in do_random_tests()
249 p3[i] = random () & BIG_CHAR; in do_random_tests()
250 if (!p3[i]) in do_random_tests()
251 p3[i] = (random () & SMALL_CHAR) + 3; in do_random_tests()
329 size_t i, n; in test_main() local
352 for (i = 1; i < 8; ++i) in test_main()
354 do_test (0, 0, 8 << i, 8 << i, n, SMALL_CHAR); in test_main()
355 do_test (8 - i, 2 * i, 8 << i, 8 << i, n, SMALL_CHAR); in test_main()
356 do_test (0, 0, 8 << i, 2 << i, n, SMALL_CHAR); in test_main()
357 do_test (8 - i, 2 * i, 8 << i, 2 << i, n, SMALL_CHAR); in test_main()
359 do_test (0, 0, 8 << i, 8 << i, SIZE_MAX, SMALL_CHAR); in test_main()
360 do_test (8 - i, 2 * i, 8 << i, 8 << i, SIZE_MAX, SMALL_CHAR); in test_main()
361 do_test (0, 0, 8 << i, 2 << i, SIZE_MAX, SMALL_CHAR); in test_main()
362 do_test (8 - i, 2 * i, 8 << i, 2 << i, SIZE_MAX, SMALL_CHAR); in test_main()
365 for (i = 1; i < 8; ++i) in test_main()
367 do_test (i, 2 * i, 8 << i, 1, n, SMALL_CHAR); in test_main()
368 do_test (2 * i, i, 8 << i, 1, n, BIG_CHAR); in test_main()
369 do_test (i, i, 8 << i, 10, n, SMALL_CHAR); in test_main()
371 do_test (i, 2 * i, 8 << i, 1, SIZE_MAX, SMALL_CHAR); in test_main()
372 do_test (2 * i, i, 8 << i, 1, SIZE_MAX, BIG_CHAR); in test_main()
373 do_test (i, i, 8 << i, 10, SIZE_MAX, SMALL_CHAR); in test_main()