Lines Matching full:alignment
10 size_t alignment; in TEST_BEGIN() local
13 for (alignment = 0; alignment < sizeof(void *); alignment++) { in TEST_BEGIN()
14 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
15 "Expected error for invalid alignment %zu", in TEST_BEGIN()
16 alignment); in TEST_BEGIN()
19 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
20 alignment <<= 1) { in TEST_BEGIN()
21 assert_d_ne(posix_memalign(&p, alignment + 1, 1), 0, in TEST_BEGIN()
22 "Expected error for invalid alignment %zu", in TEST_BEGIN()
23 alignment + 1); in TEST_BEGIN()
30 size_t alignment, size; in TEST_BEGIN() local
34 alignment = UINT64_C(0x8000000000000000); in TEST_BEGIN()
37 alignment = 0x80000000LU; in TEST_BEGIN()
40 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
42 alignment, size); in TEST_BEGIN()
45 alignment = UINT64_C(0x4000000000000000); in TEST_BEGIN()
48 alignment = 0x40000000LU; in TEST_BEGIN()
51 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
53 alignment, size); in TEST_BEGIN()
55 alignment = 0x10LU; in TEST_BEGIN()
61 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
63 alignment, size); in TEST_BEGIN()
69 size_t alignment, size, total; in TEST_BEGIN() local
77 for (alignment = 8; in TEST_BEGIN()
78 alignment <= MAXALIGN; in TEST_BEGIN()
79 alignment <<= 1) { in TEST_BEGIN()
82 size < 3 * alignment && size < (1U << 31); in TEST_BEGIN()
83 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
86 alignment, size); in TEST_BEGIN()
92 "Error for alignment=%zu, " in TEST_BEGIN()
94 alignment, size, size, buf); in TEST_BEGIN()