Searched refs:AlignPtr (Results 1 - 2 of 2) sorted by relevance
/external/llvm/lib/Support/ |
H A D | Allocator.cpp | 32 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should 33 /// be a power of two. This method rounds up, so AlignPtr(7, 4) == 8 and 34 /// AlignPtr(8, 4) == 8. 35 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { function in class:llvm::BumpPtrAllocator 100 char *Ptr = AlignPtr(CurPtr, Alignment); 118 Ptr = AlignPtr((char*)(NewSlab + 1), Alignment); 125 Ptr = AlignPtr(CurPtr, Alignment);
|
/external/llvm/include/llvm/Support/ |
H A D | Allocator.h | 123 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should 124 /// be a power of two. This method rounds up, so AlignPtr(7, 4) == 8 and 125 /// AlignPtr(8, 4) == 8. 126 static char *AlignPtr(char *Ptr, size_t Alignment); 209 Ptr = Allocator.AlignPtr(Ptr, alignOf<T>());
|
Completed in 67 milliseconds