Lines Matching refs:align1
115 do_test (size_t align1, size_t align2, size_t len, int exp_result) in do_test() argument
123 align1 &= (4096 - CHARBYTES); in do_test()
124 if (align1 + (len + 1) * CHARBYTES >= page_size) in do_test()
131 s1 = (CHAR *) (buf1 + align1); in do_test()
137 s1[len] = align1; in do_test()
148 size_t i, j, n, align1, align2, pos, len; in do_random_tests() local
156 align1 = random () & 31; in do_random_tests()
160 align2 = align1 + (random () & 24); in do_random_tests()
162 j = align1; in do_random_tests()
170 j = len + align1 + 64; in do_random_tests()
179 MEMCPY ((CHAR *) p2 + align2, (const CHAR *) p1 + align1, len); in do_random_tests()
182 MEMCPY ((CHAR *) p2 + align2, (const CHAR *) p1 + align1, pos); in do_random_tests()
183 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
186 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
187 p2[align2 + pos] = p1[align1 + pos] + 3 + (random () & 127); in do_random_tests()
190 if (p1[align1 + pos] < p2[align2 + pos]) in do_random_tests()
198 r = CALL (impl, (CHAR *) p1 + align1, (const CHAR *) p2 + align2, in do_random_tests()
203 … n, impl->name, align1 * CHARBYTES & 63, align2 * CHARBYTES & 63, len, pos, r, result, p1, p2); in do_random_tests()