Lines Matching full:alignment
17 size_t alignment; in TEST_BEGIN() local
20 alignment = 0; in TEST_BEGIN()
22 p = aligned_alloc(alignment, 1); in TEST_BEGIN()
24 "Expected error for invalid alignment %zu", alignment); in TEST_BEGIN()
26 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
27 alignment <<= 1) { in TEST_BEGIN()
29 p = aligned_alloc(alignment + 1, 1); in TEST_BEGIN()
31 "Expected error for invalid alignment %zu", in TEST_BEGIN()
32 alignment + 1); in TEST_BEGIN()
38 size_t alignment, size; in TEST_BEGIN() local
42 alignment = UINT64_C(0x8000000000000000); in TEST_BEGIN()
45 alignment = 0x80000000LU; in TEST_BEGIN()
49 p = aligned_alloc(alignment, size); in TEST_BEGIN()
52 alignment, size); in TEST_BEGIN()
55 alignment = UINT64_C(0x4000000000000000); in TEST_BEGIN()
58 alignment = 0x40000000LU; in TEST_BEGIN()
62 p = aligned_alloc(alignment, size); in TEST_BEGIN()
65 alignment, size); in TEST_BEGIN()
67 alignment = 0x10LU; in TEST_BEGIN()
74 p = aligned_alloc(alignment, size); in TEST_BEGIN()
77 alignment, size); in TEST_BEGIN()
83 size_t alignment, size, total; in TEST_BEGIN() local
91 for (alignment = 8; in TEST_BEGIN()
92 alignment <= MAXALIGN; in TEST_BEGIN()
93 alignment <<= 1) { in TEST_BEGIN()
96 size < 3 * alignment && size < (1U << 31); in TEST_BEGIN()
97 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
99 ps[i] = aligned_alloc(alignment, size); in TEST_BEGIN()
105 "Error for alignment=%zu, " in TEST_BEGIN()
107 alignment, size, size, buf); in TEST_BEGIN()