Lines Matching refs:Alignment
23 unsigned Alignment, in allocateDataSection() argument
28 return allocateSection(RODataMem, Size, Alignment); in allocateDataSection()
29 return allocateSection(RWDataMem, Size, Alignment); in allocateDataSection()
33 unsigned Alignment, in allocateCodeSection() argument
36 return allocateSection(CodeMem, Size, Alignment); in allocateCodeSection()
41 unsigned Alignment) { in allocateSection() argument
42 if (!Alignment) in allocateSection()
43 Alignment = 16; in allocateSection()
45 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection()
47 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1)/Alignment + 1); in allocateSection()
57 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection()
106 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection()