Lines Matching refs:i

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()
181 p[i] = seek_char; in do_random_tests()
182 else if (i == len + align) in do_random_tests()
183 p[i] = 0; in do_random_tests()
186 p[i] = random () & 255; in do_random_tests()
187 if (i < pos + align && p[i] == seek_char) in do_random_tests()
188 p[i] = seek_char + 13; in do_random_tests()
189 if (i < len + align && !p[i]) in do_random_tests()
191 p[i] = seek_char - 13; in do_random_tests()
192 if (!p[i]) in do_random_tests()
193 p[i] = 140; in do_random_tests()
231 size_t i; in test_main() local
242 for (i = 1; i < 8; ++i) in test_main()
244 do_test (0, 16 << i, 2048, SMALL_CHAR, MIDDLE_CHAR); in test_main()
245 do_test (i, 16 << i, 2048, SMALL_CHAR, MIDDLE_CHAR); in test_main()
248 for (i = 1; i < 8; ++i) in test_main()
250 do_test (0, 16 << i, 4096, SMALL_CHAR, MIDDLE_CHAR); in test_main()
251 do_test (i, 16 << i, 4096, SMALL_CHAR, MIDDLE_CHAR); in test_main()
254 for (i = 1; i < 8; ++i) in test_main()
256 do_test (i, 64, 256, SMALL_CHAR, MIDDLE_CHAR); in test_main()
257 do_test (i, 64, 256, SMALL_CHAR, BIG_CHAR); in test_main()
260 for (i = 0; i < 8; ++i) in test_main()
262 do_test (16 * i, 256, 512, SMALL_CHAR, MIDDLE_CHAR); in test_main()
263 do_test (16 * i, 256, 512, SMALL_CHAR, BIG_CHAR); in test_main()
266 for (i = 0; i < 32; ++i) in test_main()
268 do_test (0, i, i + 1, SMALL_CHAR, MIDDLE_CHAR); in test_main()
269 do_test (0, i, i + 1, SMALL_CHAR, BIG_CHAR); in test_main()
272 for (i = 1; i < 8; ++i) in test_main()
274 do_test (0, 16 << i, 2048, 0, MIDDLE_CHAR); in test_main()
275 do_test (i, 16 << i, 2048, 0, MIDDLE_CHAR); in test_main()
278 for (i = 1; i < 8; ++i) in test_main()
280 do_test (0, 16 << i, 4096, 0, MIDDLE_CHAR); in test_main()
281 do_test (i, 16 << i, 4096, 0, MIDDLE_CHAR); in test_main()
284 for (i = 1; i < 8; ++i) in test_main()
286 do_test (i, 64, 256, 0, MIDDLE_CHAR); in test_main()
287 do_test (i, 64, 256, 0, BIG_CHAR); in test_main()
290 for (i = 0; i < 8; ++i) in test_main()
292 do_test (16 * i, 256, 512, 0, MIDDLE_CHAR); in test_main()
293 do_test (16 * i, 256, 512, 0, BIG_CHAR); in test_main()
296 for (i = 0; i < 32; ++i) in test_main()
298 do_test (0, i, i + 1, 0, MIDDLE_CHAR); in test_main()
299 do_test (0, i, i + 1, 0, BIG_CHAR); in test_main()