/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
AlignOf.h | 1 //===--- AlignOf.h - Portable calculation of type alignment -----*- C++ -*-===// 29 /// the alignment of the template argument. For example, 30 /// AlignOf<int>::Alignment represents the alignment of type "int". The 31 /// alignment calculated is the minimum alignment, and not necessarily 32 /// the "desired" alignment returned by GCC's __alignof__ (for example). Note 33 /// that because the alignment is an enum value, it can be used as a 37 enum { Alignment = 40 enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 } [all...] |
/external/deqp/framework/delibs/decpp/ |
dePoolArray.hpp | 38 template<typename T, deUint32 Alignment> 41 template<typename T, deUint32 Alignment> 51 template<typename T, deUint32 Alignment = (sizeof(T) > sizeof(void*) ? (deUint32)sizeof(void*) : (deUint32)sizeof(T))> 55 typedef PoolArrayIterator<T, Alignment> Iterator; 56 typedef PoolArrayConstIterator<T, Alignment> ConstIterator; 62 PoolArray (MemPool* pool, const PoolArray<T, Alignment>& other); 101 PoolArray (const PoolArray<T, Alignment>& other); // \note Default copy ctor is not allowed, use PoolArray(pool, copy) instead. 114 template<typename T, deUint32 Alignment> 127 template<typename T, deUint32 Alignment> 128 class PoolArrayConstIterator : public PoolArrayIteratorBase<T, Alignment> [all...] |
deArrayBuffer.hpp | 36 void* ArrayBuffer_AlignedMalloc (size_t numBytes, size_t alignment); 47 template <typename T, size_t Alignment = (sizeof(T) > 4 ? 4 : sizeof(T)), size_t Stride = sizeof(T)> 76 template <typename T, size_t Alignment, size_t Stride> 77 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (void) throw() 83 template <typename T, size_t Alignment, size_t Stride> 84 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) 92 void* const ptr = detail::ArrayBuffer_AlignedMalloc(storageSize, Alignment); 102 template <typename T, size_t Alignment, size_t Stride> 103 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const T* ptr, size_t numElements) 110 ArrayBuffer<T,Alignment,Stride> tmp(numElements) [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
AlignmentSpan_StandardTest.java | 24 import android.text.Layout.Alignment; 38 new Standard(Alignment.ALIGN_CENTER); 40 Standard standard = new Standard(Alignment.ALIGN_NORMAL); 53 Standard standard = new Standard(Alignment.ALIGN_NORMAL); 54 assertEquals(Alignment.ALIGN_NORMAL, standard.getAlignment()); 56 standard = new Standard(Alignment.ALIGN_OPPOSITE); 57 assertEquals(Alignment.ALIGN_OPPOSITE, standard.getAlignment()); 59 standard = new Standard(Alignment.ALIGN_CENTER); 60 assertEquals(Alignment.ALIGN_CENTER, standard.getAlignment()); 65 Standard standard = new Standard(Alignment.ALIGN_NORMAL) [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
MachineConstantPool.h | 55 unsigned Alignment) = 0; 82 /// The required alignment for this entry. The top bit is set when Val is 84 unsigned Alignment; 87 : Alignment(A) { 91 : Alignment(A) { 93 Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1); 100 return (int)Alignment < 0; 104 return Alignment & ~(1 << (sizeof(unsigned)*CHAR_BIT-1)); 135 unsigned PoolAlignment; ///< The alignment for the pool. 145 /// getConstantPoolAlignment - Return the alignment required b [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/ |
MemoryAllocationLib.c | 152 Allocates one or more 4KB pages of a certain memory type at a specified alignment.
154 Allocates the number of 4KB pages specified by Pages of a certain memory type with an alignment
155 specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is returned.
156 If there is not enough memory at the specified alignment remaining to satisfy the request, then
158 If Alignment is not a power of two and Alignment is not zero, then ASSERT().
162 @param Alignment The requested alignment of the allocation. Must be a power of two.
163 If Alignment is zero, then byte alignment is used. [all...] |
/frameworks/base/core/java/android/text/style/ |
AlignmentSpan.java | 25 Layout.Alignment getAlignment(); 28 public Standard(Layout.Alignment align) { 33 mAlignment = Layout.Alignment.valueOf(src.readString()); 58 public Layout.Alignment getAlignment() { 62 private final Layout.Alignment mAlignment;
|
/external/llvm/include/llvm/CodeGen/ |
MachineConstantPool.h | 50 unsigned Alignment) = 0; 76 /// The required alignment for this entry. The top bit is set when Val is 78 unsigned Alignment; 81 : Alignment(A) { 85 : Alignment(A) { 87 Alignment |= 1U << (sizeof(unsigned) * CHAR_BIT - 1); 94 return (int)Alignment < 0; 98 return Alignment & ~(1 << (sizeof(unsigned) * CHAR_BIT - 1)); 122 unsigned PoolAlignment; ///< The alignment for the pool. 136 /// getConstantPoolAlignment - Return the alignment required b [all...] |
/external/llvm/lib/Target/Mips/ |
MipsFrameLowering.h | 28 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment) 29 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {}
|
/external/llvm/include/llvm/Support/ |
AlignOf.h | 1 //===--- AlignOf.h - Portable calculation of type alignment -----*- C++ -*-===// 26 // For everything other than an abstract class we can calulate alignment by 33 // generated by any class using AlignOf<T> with a manually specified alignment. 44 // Abstract base class helper, this will have the minimal alignment and size 51 // When we have an abstract class type, specialize the alignment computation 64 /// the alignment of the template argument. For example, 65 /// AlignOf<int>::Alignment represents the alignment of type "int". The 66 /// alignment calculated is the minimum alignment, and not necessaril [all...] |
/external/clang/test/CXX/temp/temp.spec/temp.inst/ |
p11.cpp | 9 void Allocate(unsigned Alignment
|
/external/llvm/lib/Transforms/Utils/ |
ASanStackFrameLayout.cpp | 21 // We sort the stack variables by alignment (largest first) to minimize 22 // unnecessary large gaps due to alignment. 30 return a.Alignment > b.Alignment; 33 // We also force minimal alignment for all vars to kMinAlignment so that vars 34 // with e.g. alignment 1 and alignment 16 do not get reordered by CompareVars. 38 // The resulting frame size is a multiple of Alignment. 39 static size_t VarAndRedzoneSize(size_t Size, size_t Alignment) { 47 return alignTo(Res, Alignment); [all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/ |
MemoryAllocationLib.c | 83 Allocates one or more 4KB pages of type EfiBootServicesData at a specified alignment.
86 alignment specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is
87 returned. If there is not enough memory at the specified alignment remaining to satisfy the
89 If Alignment is not a power of two and Alignment is not zero, then ASSERT().
92 @param Alignment The requested alignment of the allocation. Must be a power of two.
93 If Alignment is zero, then byte alignment is used. [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/ |
MemoryAllocationLib.c | 155 Allocates one or more 4KB pages of a certain memory type at a specified alignment.
157 Allocates the number of 4KB pages specified by Pages of a certain memory type with an alignment
158 specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is returned.
159 If there is not enough memory at the specified alignment remaining to satisfy the request, then
161 If Alignment is not a power of two and Alignment is not zero, then ASSERT().
165 @param Alignment The requested alignment of the allocation. Must be a power of two.
166 If Alignment is zero, then byte alignment is used. [all...] |
/device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/ |
UncachedMemoryAllocationLib.c | 40 IN UINTN Alignment
71 * @param Alignment Required alignment
82 IN UINTN Alignment,
94 // Alignment must be a power of two or zero.
95 ASSERT ((Alignment & (Alignment - 1)) == 0);
106 if (((UINTN)Node->Base & (Alignment - 1)) == 0) {
141 // We do not want to over-allocate in case the alignment requirement does not
143 if (Alignment > EFI_PAGE_SIZE) { [all...] |
/external/swiftshader/third_party/LLVM/lib/Support/ |
Allocator.cpp | 32 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should 35 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { 36 assert(Alignment && (Alignment & (Alignment - 1)) == 0 && 37 "Alignment is not a power of two!"); 39 // Do the alignment. 40 return (char*)(((uintptr_t)Ptr + Alignment - 1) & 41 ~(uintptr_t)(Alignment - 1)) [all...] |
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/ |
DebugUncachedMemoryAllocationLib.c | 48 IN UINTN Alignment
207 IN UINTN Alignment
218 // Alignment must be a power of two or zero.
220 ASSERT ((Alignment & (Alignment - 1)) == 0);
225 if (Alignment > EFI_PAGE_SIZE) {
227 // Caculate the total number of pages since alignment is larger than page size.
229 AlignmentMask = Alignment - 1;
230 RealPages = Pages + EFI_SIZE_TO_PAGES (Alignment);
232 // Make sure that Pages plus EFI_SIZE_TO_PAGES (Alignment) does not overflow. [all...] |
/device/linaro/bootloader/edk2/ArmPkg/Include/Library/ |
UncachedMemoryAllocationLib.h | 137 Allocates one or more 4KB pages of type EfiBootServicesData at a specified alignment.
140 alignment specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is
141 returned. If there is not enough memory at the specified alignment remaining to satisfy the
143 If Alignment is not a power of two and Alignment is not zero, then ASSERT().
146 @param Alignment The requested alignment of the allocation. Must be a power of two.
147 If Alignment is zero, then byte alignment is used. [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/ |
EdkIIGlueMemoryAllocationLib.h | 115 Allocates one or more 4KB pages of type EfiBootServicesData at a specified alignment.
118 alignment specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is
119 returned. If there is not enough memory at the specified alignment remaining to satisfy the
121 If Alignment is not a power of two and Alignment is not zero, then ASSERT().
124 @param Alignment The requested alignment of the allocation. Must be a power of two.
125 If Alignment is zero, then byte alignment is used. [all...] |
/external/llvm/include/llvm/ExecutionEngine/ |
SectionMemoryManager.h | 48 /// The value of \p Alignment must be a power of two. If \p Alignment is zero 49 /// a default alignment of 16 will be used. 50 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, 57 /// The value of \p Alignment must be a power of two. If \p Alignment is zero 58 /// a default alignment of 16 will be used. 59 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, 111 unsigned Alignment);
|
/external/llvm/include/llvm/MC/ |
StringTableBuilder.h | 29 unsigned Alignment; 34 StringTableBuilder(Kind K, unsigned Alignment = 1);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
TextLayoutTest.java | 41 Layout.Alignment.ALIGN_NORMAL, 1, 0, 48 Layout.Alignment.ALIGN_NORMAL, 1, 0,
|
/external/llvm/lib/ExecutionEngine/ |
SectionMemoryManager.cpp | 23 unsigned Alignment, 28 return allocateSection(RODataMem, Size, Alignment); 29 return allocateSection(RWDataMem, Size, Alignment); 33 unsigned Alignment, 36 return allocateSection(CodeMem, Size, Alignment); 41 unsigned Alignment) { 42 if (!Alignment) 43 Alignment = 16; 45 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two.") [all...] |
/external/clang/test/CodeGenCXX/ |
alloca-align.cpp | 5 unsigned Alignment;
|
/frameworks/compile/mclinker/unittests/ |
FragmentTest.cpp | 40 new Fragment(Fragment::Alignment, s); 42 new Fragment(Fragment::Alignment, s); 55 Fragment* f = new Fragment(Fragment::Alignment, s); 57 EXPECT_TRUE(Fragment::Alignment == f->getKind());
|