Lines Matching refs:align
22 * @tc.desc : Each parameter is valid, and align is obtained by getpagesize(), which can allocate a memory block
23 * whose size is specified by len and whose address is a multiple of align.
28 int align = getpagesize();
29 EXPECT_NE("memalign_0100", align, -1);
30 void *buff = (void *)memalign(align, 8 * align);
39 * len and the address is a multiple of align
44 int align = 16;
46 buff = (void *)memalign(align, 8 * align);
54 * @tc.desc : The align parameter is invalid, and a memory block whose size is specified
55 * by len and whose address is a multiple of align cannot be allocated
60 int align = getpagesize() - 1;
61 EXPECT_NE("memalign_0300", align, -1);
62 void *buff = (void *)memalign(align, 128);
71 * len and whose address is a multiple of align cannot be allocated
76 int align = getpagesize();
77 EXPECT_NE("memalign_0400", align, -1);
78 void *buff = (void *)memalign(align, SIZE_MAX - align + 1);
87 * with a size specified by len and an address that is a multiple of align
92 int align = (4 * sizeof(size_t)) + 1;
93 void *buff = (void *)memalign(align, align * 1024);