Lines Matching refs:len
123 do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char) in do_test() argument
132 if ((align + len) * sizeof (CHAR) >= page_size) in do_test()
135 for (i = 0; i < len; ++i) in do_test()
143 buf[align + len] = 0; in do_test()
145 if (pos < len) in do_test()
151 result = buf + align + len; in do_test()
153 result = NULLRET (buf + align + len); in do_test()
162 size_t i, j, n, align, pos, len; in do_random_tests() local
178 len = random () & 511; in do_random_tests()
179 if ((pos == len && seek_char) in do_random_tests()
180 || (pos > len && (random () & 1))) in do_random_tests()
181 len = pos + 1 + (random () & 7); in do_random_tests()
182 if (len + align >= 512) in do_random_tests()
183 len = 511 - align - (random () & 7); in do_random_tests()
184 if (pos == len && seek_char) in do_random_tests()
185 len = pos + 1; in do_random_tests()
186 j = (pos > len ? pos : len) + align + 64; in do_random_tests()
194 else if (i == len + align) in do_random_tests()
201 if (i < len + align && !p[i]) in do_random_tests()
210 if (pos <= len) in do_random_tests()
213 result = (CHAR *) (p + len + align); in do_random_tests()
215 result = NULLRET ((CHAR *) (p + len + align)); in do_random_tests()
222 n, impl->name, align * sizeof (CHAR), seek_char, len, pos, in do_random_tests()