Lines Matching refs:i

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()
120 do_test (0, i, 751, SIZE_MAX - buf_addr - i, BIG_CHAR); in do_overflow_tests()
121 do_test (0, i, 751, SIZE_MAX - buf_addr + i, BIG_CHAR); in do_overflow_tests()
127 do_test (0, i, 751, len - i, BIG_CHAR); in do_overflow_tests()
128 do_test (0, i, 751, len + i, BIG_CHAR); in do_overflow_tests()
129 do_test (0, i, 751, len - buf_addr - i, BIG_CHAR); in do_overflow_tests()
130 do_test (0, i, 751, len - buf_addr + i, BIG_CHAR); in do_overflow_tests()
132 do_test (0, i, 751, ~len - i, BIG_CHAR); in do_overflow_tests()
133 do_test (0, i, 751, ~len + i, BIG_CHAR); in do_overflow_tests()
134 do_test (0, i, 751, ~len - buf_addr - i, BIG_CHAR); in do_overflow_tests()
135 do_test (0, i, 751, ~len - buf_addr + i, BIG_CHAR); in do_overflow_tests()
143 size_t i, j, n, align, pos, len; in do_random_tests() local
164 for (i = 0; i < j; i++) in do_random_tests()
166 if (i == pos + align) in do_random_tests()
167 p[i] = seek_char; in do_random_tests()
170 p[i] = random () & BIG_CHAR; in do_random_tests()
171 if (i < pos + align && p[i] == seek_char) in do_random_tests()
172 p[i] = seek_char + 13; in do_random_tests()
201 size_t i, j; in test_main() local
210 for (i = 1; i < 8; ++i) in test_main()
213 do_test (i, i, 0, 0, 23); in test_main()
214 do_test (i, i, 0, 0, 0); in test_main()
216 do_test (0, 16 << i, 2048, 2048, 23); in test_main()
217 do_test (i, 64, 256, 256, 23); in test_main()
218 do_test (0, 16 << i, 2048, 2048, 0); in test_main()
219 do_test (i, 64, 256, 256, 0); in test_main()
224 do_test (0, 7 << i, 2048, SIZE_MAX, 23); in test_main()
225 do_test (0, 2048 - i, 2048, SIZE_MAX, 23); in test_main()
226 do_test (i, 64, 256, SIZE_MAX, 23); in test_main()
227 do_test (0, 7 << i, 2048, SIZE_MAX, 0); in test_main()
228 do_test (0, 2048 - i, 2048, SIZE_MAX, 0); in test_main()
229 do_test (i, 64, 256, SIZE_MAX, 0); in test_main()
232 for (i = 1; i < 64; ++i) in test_main()
237 do_test (i, 64 - j, 64, SIZE_MAX, 23); in test_main()
241 for (i = 1; i < 32; ++i) in test_main()
243 do_test (0, i, i + 1, i + 1, 23); in test_main()
244 do_test (0, i, i + 1, i + 1, 0); in test_main()
249 for (i = 2; i < 16; ++i) in test_main()
251 do_test (page_size / 2 - i, i, i, 1, 0x9B); in test_main()