Lines Matching refs:align
138 do_test (size_t align, int c, size_t len) in do_test() argument
140 align &= 4095; in do_test()
141 if ((align + len) * sizeof (CHAR) > page_size) in do_test()
145 do_one_test (impl, (CHAR *) (buf1) + align, c, len); in do_test()
152 size_t i, j, k, n, align, len, size; in do_random_tests() local
168 align = size - len - (random () & 31); in do_random_tests()
169 if (align > size) in do_random_tests()
170 align = size - len; in do_random_tests()
172 align &= ~63; in do_random_tests()
180 j = len + align + 128; in do_random_tests()
183 if (align >= 128) in do_random_tests()
184 k = align - 128; in do_random_tests()
187 for (i = k; i < align; ++i) in do_random_tests()
189 for (i = align + len; i < j; ++i) in do_random_tests()
196 p[i + align] = p2[i]; in do_random_tests()
197 if (p[i + align] == c) in do_random_tests()
198 p[i + align] = o; in do_random_tests()
200 res = (UCHAR *) CALL (impl, (CHAR *) p + align, c, len); in do_random_tests()
201 if (res != p + align) in do_random_tests()
204 n, impl->name, align, c, len, res, p + align); in do_random_tests()
207 for (i = k; i < align; ++i) in do_random_tests()
211 n, impl->name, align, c, len); in do_random_tests()
215 for (; i < align + len; ++i) in do_random_tests()
219 n, impl->name, align, c, len); in do_random_tests()
227 n, impl->name, align, c, len); in do_random_tests()