• Home
  • Raw
  • Download

Lines Matching full:alignment

17 	size_t alignment;  in TEST_BEGIN()  local
20 for (alignment = 0; alignment < sizeof(void *); alignment++) { in TEST_BEGIN()
21 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
22 "Expected error for invalid alignment %zu", in TEST_BEGIN()
23 alignment); in TEST_BEGIN()
26 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
27 alignment <<= 1) { in TEST_BEGIN()
28 assert_d_ne(posix_memalign(&p, alignment + 1, 1), 0, in TEST_BEGIN()
29 "Expected error for invalid alignment %zu", in TEST_BEGIN()
30 alignment + 1); in TEST_BEGIN()
36 size_t alignment, size; in TEST_BEGIN() local
40 alignment = UINT64_C(0x8000000000000000); in TEST_BEGIN()
43 alignment = 0x80000000LU; in TEST_BEGIN()
46 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
48 alignment, size); in TEST_BEGIN()
51 alignment = UINT64_C(0x4000000000000000); in TEST_BEGIN()
54 alignment = 0x40000000LU; in TEST_BEGIN()
57 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
59 alignment, size); in TEST_BEGIN()
61 alignment = 0x10LU; in TEST_BEGIN()
67 assert_d_ne(posix_memalign(&p, alignment, size), 0, in TEST_BEGIN()
69 alignment, size); in TEST_BEGIN()
75 size_t alignment, size, total; in TEST_BEGIN() local
84 for (alignment = 8; in TEST_BEGIN()
85 alignment <= MAXALIGN; in TEST_BEGIN()
86 alignment <<= 1) { in TEST_BEGIN()
89 size < 3 * alignment && size < (1U << 31); in TEST_BEGIN()
90 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
93 alignment, size); in TEST_BEGIN()
99 "Error for alignment=%zu, " in TEST_BEGIN()
101 alignment, size, size, buf); in TEST_BEGIN()