Lines Matching full:alignment
22 unsigned Alignment, in allocateDataSection() argument
27 return allocateSection(RODataMem, Size, Alignment); in allocateDataSection()
28 return allocateSection(RWDataMem, Size, Alignment); in allocateDataSection()
32 unsigned Alignment, in allocateCodeSection() argument
35 return allocateSection(CodeMem, Size, Alignment); in allocateCodeSection()
40 unsigned Alignment) { in allocateSection() argument
41 if (!Alignment) in allocateSection()
42 Alignment = 16; in allocateSection()
44 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection()
46 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1)/Alignment + 1); in allocateSection()
57 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection()
93 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection()