Lines Matching full:alignment
21 size_t alignment; in TEST_BEGIN() local
24 alignment = 0; in TEST_BEGIN()
26 p = aligned_alloc(alignment, 1); in TEST_BEGIN()
28 "Expected error for invalid alignment %zu", alignment); in TEST_BEGIN()
30 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
31 alignment <<= 1) { in TEST_BEGIN()
33 p = aligned_alloc(alignment + 1, 1); in TEST_BEGIN()
35 "Expected error for invalid alignment %zu", in TEST_BEGIN()
36 alignment + 1); in TEST_BEGIN()
43 size_t alignment, size; in TEST_BEGIN() local
47 alignment = UINT64_C(0x8000000000000000); in TEST_BEGIN()
50 alignment = 0x80000000LU; in TEST_BEGIN()
54 p = aligned_alloc(alignment, size); in TEST_BEGIN()
57 alignment, size); in TEST_BEGIN()
60 alignment = UINT64_C(0x4000000000000000); in TEST_BEGIN()
63 alignment = 0x40000000LU; in TEST_BEGIN()
67 p = aligned_alloc(alignment, size); in TEST_BEGIN()
70 alignment, size); in TEST_BEGIN()
72 alignment = 0x10LU; in TEST_BEGIN()
79 p = aligned_alloc(alignment, size); in TEST_BEGIN()
82 alignment, size); in TEST_BEGIN()
89 size_t alignment, size, total; in TEST_BEGIN() local
96 for (alignment = 8; in TEST_BEGIN()
97 alignment <= MAXALIGN; in TEST_BEGIN()
98 alignment <<= 1) { in TEST_BEGIN()
101 size < 3 * alignment && size < (1U << 31); in TEST_BEGIN()
102 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
104 ps[i] = aligned_alloc(alignment, size); in TEST_BEGIN()
110 "Error for alignment=%zu, " in TEST_BEGIN()
112 alignment, size, size, buf); in TEST_BEGIN()