Lines Matching refs:i
81 size_t i; in do_test() local
89 for (i = 0; i < len; ++i) in do_test()
91 buf[align + i] = (random () * random ()) & max_char; in do_test()
92 if (!buf[align + i]) in do_test()
93 buf[align + i] = (random () * random ()) & max_char; in do_test()
94 if (!buf[align + i]) in do_test()
95 buf[align + i] = 1; in do_test()
96 if ((i > pos || pos >= len) && buf[align + i] == seek_char) in do_test()
97 buf[align + i] = seek_char + 10 + (random () & 15); in do_test()
118 size_t i, j, n, align, pos, len; in do_random_tests() local
153 for (i = 0; i < j; i++) in do_random_tests()
155 if (i == pos + align) in do_random_tests()
156 p[i] = seek_char; in do_random_tests()
157 else if (i == len + align) in do_random_tests()
158 p[i] = 0; in do_random_tests()
161 p[i] = random () & 255; in do_random_tests()
162 if (((i > pos + align && i < len + align) || pos > len) in do_random_tests()
163 && p[i] == seek_char) in do_random_tests()
164 p[i] = seek_char + 13; in do_random_tests()
165 if (i < len + align && !p[i]) in do_random_tests()
167 p[i] = seek_char - 13; in do_random_tests()
168 if (!p[i]) in do_random_tests()
169 p[i] = 140; in do_random_tests()
195 size_t i; in test_main() local
204 for (i = 1; i < 8; ++i) in test_main()
206 do_test (0, 16 << i, 2048, 23, SMALL_CHAR); in test_main()
207 do_test (i, 16 << i, 2048, 23, SMALL_CHAR); in test_main()
210 for (i = 1; i < 8; ++i) in test_main()
212 do_test (i, 64, 256, 23, SMALL_CHAR); in test_main()
213 do_test (i, 64, 256, 23, BIG_CHAR); in test_main()
216 for (i = 0; i < 32; ++i) in test_main()
218 do_test (0, i, i + 1, 23, SMALL_CHAR); in test_main()
219 do_test (0, i, i + 1, 23, BIG_CHAR); in test_main()
222 for (i = 1; i < 8; ++i) in test_main()
224 do_test (0, 16 << i, 2048, 0, SMALL_CHAR); in test_main()
225 do_test (i, 16 << i, 2048, 0, SMALL_CHAR); in test_main()
228 for (i = 1; i < 8; ++i) in test_main()
230 do_test (i, 64, 256, 0, SMALL_CHAR); in test_main()
231 do_test (i, 64, 256, 0, BIG_CHAR); in test_main()
234 for (i = 0; i < 32; ++i) in test_main()
236 do_test (0, i, i + 1, 0, SMALL_CHAR); in test_main()
237 do_test (0, i, i + 1, 0, BIG_CHAR); in test_main()