Lines Matching refs:i

53   size_t i;  in SIMPLE_STRNLEN()  local
55 for (i = 0; i < maxlen && s[i]; ++i); in SIMPLE_STRNLEN()
56 return i; in SIMPLE_STRNLEN()
75 size_t i; in do_test() local
83 for (i = 0; i < len; ++i) in do_test()
84 buf[align + i] = 1 + 11111 * i % max_char; in do_test()
94 size_t i, j, len; in do_overflow_tests() local
98 for (i = 0; i < 750; ++i) in do_overflow_tests()
100 do_test (0, i, SIZE_MAX - i, BIG_CHAR); in do_overflow_tests()
101 do_test (0, i, i - buf_addr, BIG_CHAR); in do_overflow_tests()
102 do_test (0, i, -buf_addr - i, BIG_CHAR); in do_overflow_tests()
103 do_test (0, i, SIZE_MAX - buf_addr - i, BIG_CHAR); in do_overflow_tests()
104 do_test (0, i, SIZE_MAX - buf_addr + i, BIG_CHAR); in do_overflow_tests()
110 do_test (0, i, len - i, BIG_CHAR); in do_overflow_tests()
111 do_test (0, i, len + i, BIG_CHAR); in do_overflow_tests()
112 do_test (0, i, len - buf_addr - i, BIG_CHAR); in do_overflow_tests()
113 do_test (0, i, len - buf_addr + i, BIG_CHAR); in do_overflow_tests()
115 do_test (0, i, ~len - i, BIG_CHAR); in do_overflow_tests()
116 do_test (0, i, ~len + i, BIG_CHAR); in do_overflow_tests()
117 do_test (0, i, ~len - buf_addr - i, BIG_CHAR); in do_overflow_tests()
118 do_test (0, i, ~len - buf_addr + i, BIG_CHAR); in do_overflow_tests()
120 do_test (0, i, -buf_addr, BIG_CHAR); in do_overflow_tests()
121 do_test (0, i, j - buf_addr, BIG_CHAR); in do_overflow_tests()
122 do_test (0, i, -buf_addr - j, BIG_CHAR); in do_overflow_tests()
130 size_t i, j, n, align, len; in do_random_tests() local
143 for (i = 0; i < j; i++) in do_random_tests()
145 if (i == len + align) in do_random_tests()
146 p[i] = 0; in do_random_tests()
149 p[i] = random () & 255; in do_random_tests()
150 if (i >= align && i < len + align && !p[i]) in do_random_tests()
151 p[i] = (random () & 127) + 1; in do_random_tests()
188 size_t i, exp_len, start_offset, offset; in do_page_tests() local
198 for (i = 0; i < 128; i++) in do_page_tests()
220 for (i = 0; i < 64; ++i) in do_page_tests()
223 offset = start_offset + i; in do_page_tests()
242 size_t i, exp_len, offset; in do_page_2_tests() local
251 for (i = 0; i < 128; i++) in do_page_2_tests()
268 size_t i, length, char_per_page; in test_main() local
277 for (i = 1; i < 8; ++i) in test_main()
279 do_test (0, i, i - 1, MIDDLE_CHAR); in test_main()
280 do_test (0, i, i, MIDDLE_CHAR); in test_main()
281 do_test (0, i, i + 1, MIDDLE_CHAR); in test_main()
284 for (i = 1; i < 8; ++i) in test_main()
286 do_test (i, i, i - 1, MIDDLE_CHAR); in test_main()
287 do_test (i, i, i, MIDDLE_CHAR); in test_main()
288 do_test (i, i, i + 1, MIDDLE_CHAR); in test_main()
291 for (i = 2; i <= 10; ++i) in test_main()
293 do_test (0, 1 << i, 5000, MIDDLE_CHAR); in test_main()
294 do_test (1, 1 << i, 5000, MIDDLE_CHAR); in test_main()
297 for (i = 1; i < 8; ++i) in test_main()
298 do_test (0, i, 5000, BIG_CHAR); in test_main()
300 for (i = 1; i < 8; ++i) in test_main()
301 do_test (i, i, 5000, BIG_CHAR); in test_main()
303 for (i = 2; i <= 10; ++i) in test_main()
305 do_test (0, 1 << i, 5000, BIG_CHAR); in test_main()
306 do_test (1, 1 << i, 5000, BIG_CHAR); in test_main()
311 for (i = 0; i <= 127; i++) in test_main()
312 for (length = i; length <= 512; length++) in test_main()
314 do_test (i, length, 512, BIG_CHAR); in test_main()
315 do_test (char_per_page - i, length, 512, BIG_CHAR); in test_main()