Lines Matching full:alignment
21 size_t alignment; in TEST_BEGIN() local
24 for (alignment = 0; alignment < sizeof(void *); alignment++) { in TEST_BEGIN()
25 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
26 "Expected error for invalid alignment %zu", in TEST_BEGIN()
27 alignment); in TEST_BEGIN()
30 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
31 alignment <<= 1) { in TEST_BEGIN()
32 assert_d_ne(posix_memalign(&p, alignment + 1, 1), 0, in TEST_BEGIN()
33 "Expected error for invalid alignment %zu", in TEST_BEGIN()
34 alignment + 1); in TEST_BEGIN()
41 size_t alignment, size; in TEST_BEGIN() local
45 alignment = UINT64_C(0x8000000000000000); in TEST_BEGIN()
48 alignment = 0x80000000LU; in TEST_BEGIN()
51 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
53 alignment, size); in TEST_BEGIN()
56 alignment = UINT64_C(0x4000000000000000); in TEST_BEGIN()
59 alignment = 0x40000000LU; in TEST_BEGIN()
62 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
64 alignment, size); in TEST_BEGIN()
66 alignment = 0x10LU; in TEST_BEGIN()
72 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
74 alignment, size); in TEST_BEGIN()
81 size_t alignment, size, total; in TEST_BEGIN() local
89 for (alignment = 8; in TEST_BEGIN()
90 alignment <= MAXALIGN; in TEST_BEGIN()
91 alignment <<= 1) { in TEST_BEGIN()
94 size < 3 * alignment && size < (1U << 31); in TEST_BEGIN()
95 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
98 alignment, size); in TEST_BEGIN()
104 "Error for alignment=%zu, " in TEST_BEGIN()
106 alignment, size, size, buf); in TEST_BEGIN()