| /external/deqp/framework/delibs/decpp/ |
| D | dePoolArray.hpp | 38 template<typename T, deUint32 Alignment> 41 template<typename T, deUint32 Alignment> 51 template<typename T, deUint32 Alignment = (sizeof(T) > 4 ? 4 : sizeof(T))> 55 typedef PoolArrayIterator<T, Alignment> Iterator; 56 typedef PoolArrayConstIterator<T, Alignment> ConstIterator; 59 PoolArray (MemPool* pool, const PoolArray<T, Alignment>& other); 92 …PoolArray (const PoolArray<T, Alignment>& other); // \note Default copy ctor is not allowed, use… 105 template<typename T, deUint32 Alignment> 118 template<typename T, deUint32 Alignment> 119 class PoolArrayConstIterator : public PoolArrayIteratorBase<T, Alignment> [all …]
|
| D | 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)> 73 template <typename T, size_t Alignment, size_t Stride> 74 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (void) throw() in ArrayBuffer() 80 template <typename T, size_t Alignment, size_t Stride> 81 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) in ArrayBuffer() 89 void* const ptr = detail::ArrayBuffer_AlignedMalloc(storageSize, Alignment); in ArrayBuffer() 99 template <typename T, size_t Alignment, size_t Stride> 100 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const ArrayBuffer<T,Alignment,Stride>& other) in ArrayBuffer() argument 116 template <typename T, size_t Alignment, size_t Stride> [all …]
|
| /external/jemalloc/test/integration/ |
| D | posix_memalign.c | 10 size_t alignment; in TEST_BEGIN() local 13 for (alignment = 0; alignment < sizeof(void *); alignment++) { in TEST_BEGIN() 14 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN() 15 "Expected error for invalid alignment %zu", in TEST_BEGIN() 16 alignment); in TEST_BEGIN() 19 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN() 20 alignment <<= 1) { in TEST_BEGIN() 21 assert_d_ne(posix_memalign(&p, alignment + 1, 1), 0, in TEST_BEGIN() 22 "Expected error for invalid alignment %zu", in TEST_BEGIN() 23 alignment + 1); in TEST_BEGIN() [all …]
|
| D | aligned_alloc.c | 10 size_t alignment; in TEST_BEGIN() local 13 alignment = 0; in TEST_BEGIN() 15 p = aligned_alloc(alignment, 1); in TEST_BEGIN() 17 "Expected error for invalid alignment %zu", alignment); in TEST_BEGIN() 19 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN() 20 alignment <<= 1) { in TEST_BEGIN() 22 p = aligned_alloc(alignment + 1, 1); in TEST_BEGIN() 24 "Expected error for invalid alignment %zu", in TEST_BEGIN() 25 alignment + 1); in TEST_BEGIN() 32 size_t alignment, size; in TEST_BEGIN() local [all …]
|
| D | mallocx.c | 41 size_t nsz, rsz, sz, alignment, total; in TEST_BEGIN() local 48 for (alignment = 8; in TEST_BEGIN() 49 alignment <= MAXALIGN; in TEST_BEGIN() 50 alignment <<= 1) { in TEST_BEGIN() 53 sz < 3 * alignment && sz < (1U << 31); in TEST_BEGIN() 54 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN() 56 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() 59 "nallocx() error for alignment=%zu, " in TEST_BEGIN() 60 "size=%zu (%#zx)", alignment, sz, sz); in TEST_BEGIN() 61 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() [all …]
|
| D | sdallocx.c | 15 size_t nsz, sz, alignment, total; in TEST_BEGIN() local 22 for (alignment = 8; in TEST_BEGIN() 23 alignment <= MAXALIGN; in TEST_BEGIN() 24 alignment <<= 1) { in TEST_BEGIN() 27 sz < 3 * alignment && sz < (1U << 31); in TEST_BEGIN() 28 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN() 30 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() 32 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() 41 MALLOCX_ALIGN(alignment)); in TEST_BEGIN()
|
| /external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
| D | p5.cpp | 3 alignas(1) int n1; // expected-error {{requested alignment is less than minimum alignment of 4 for … 4 alignas(1) alignas(2) int n2; // expected-error {{less than minimum alignment}} 6 alignas(1) alignas(2) alignas(0) int n4; // expected-error {{less than minimum alignment}} 9 alignas(1) int n7 alignas(2), // expected-error {{less than minimum alignment}} 12 alignas(1) extern int n10; // expected-error {{less than minimum alignment}} 14 enum alignas(1) E1 {}; // expected-error {{requested alignment is less than minimum alignment of 4 … 17 …) E4 { e4 = 1ull << 33 }; // expected-error {{requested alignment is less than minimum alignment o… 28 struct alignas(2) S2 { // expected-error {{requested alignment is less than minimum alignment of 4 … 31 struct alignas(2) S3 { // expected-error {{requested alignment is less than minimum alignment of 8 … 34 struct alignas(2) S4 : S1 { // expected-error {{requested alignment is less than minimum alignment … [all …]
|
| /external/llvm/test/MC/ARM/ |
| D | neon-vld-vst-align.s | 13 @ CHECK-ERRORS: error: alignment must be 64 or omitted 16 @ CHECK-ERRORS: error: alignment must be 64 or omitted 20 @ CHECK-ERRORS: error: alignment must be 64 or omitted 23 @ CHECK-ERRORS: error: alignment must be 64 or omitted 35 @ CHECK-ERRORS: error: alignment must be 64 or omitted 38 @ CHECK-ERRORS: error: alignment must be 64 or omitted 42 @ CHECK-ERRORS: error: alignment must be 64 or omitted 45 @ CHECK-ERRORS: error: alignment must be 64 or omitted 57 @ CHECK-ERRORS: error: alignment must be 64 or omitted 60 @ CHECK-ERRORS: error: alignment must be 64 or omitted [all …]
|
| /external/llvm/include/llvm/Support/ |
| D | AlignOf.h | 1 //===--- AlignOf.h - Portable calculation of type alignment -----*- C++ -*-===// 31 /// the alignment of the template argument. For example, 32 /// AlignOf<int>::Alignment represents the alignment of type "int". The 33 /// alignment calculated is the minimum alignment, and not necessarily 34 /// the "desired" alignment returned by GCC's __alignof__ (for example). Note 35 /// that because the alignment is an enum value, it can be used as a 39 enum { Alignment = enumerator 42 enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 }; 43 enum { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 }; 44 enum { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 }; [all …]
|
| D | Endian.h | 29 /// \brief ::value is either alignment, or alignof(T) if alignment is 0. 30 template<class T, int alignment> 32 enum {value = alignment == 0 ? AlignOf<T>::Alignment : alignment}; 48 std::size_t alignment> 54 (detail::PickAlignment<value_type, alignment>::value)), in read() 61 template<typename value_type, endianness endian, std::size_t alignment, 64 value_type ret = read<value_type, endian, alignment>(memory); in readNext() 72 std::size_t alignment> 76 (detail::PickAlignment<value_type, alignment>::value)), in write() 85 std::size_t alignment> [all …]
|
| /external/llvm/lib/Transforms/Utils/ |
| D | 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; in CompareVars() 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) { in VarAndRedzoneSize() argument 47 return RoundUpToAlignment(Res, Alignment); in VarAndRedzoneSize() 61 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout() 67 Layout->FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout() [all …]
|
| /external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
| D | Section.java | 34 /** {@code > 0;} alignment requirement for the final output; 36 private final int alignment; field in Section 47 * Validates an alignment. 49 * @param alignment the alignment 50 * @throws IllegalArgumentException thrown if {@code alignment} 53 public static void validateAlignment(int alignment) { in validateAlignment() argument 54 if ((alignment <= 0) || in validateAlignment() 55 (alignment & (alignment - 1)) != 0) { in validateAlignment() 56 throw new IllegalArgumentException("invalid alignment"); in validateAlignment() 66 * @param alignment {@code > 0;} alignment requirement for the final output; [all …]
|
| /external/jemalloc/include/jemalloc/internal/ |
| D | jemalloc_internal.h | 189 * n: alignment 198 /* Use MALLOCX_ALIGN_GET() if alignment may not be specified in flags. */ 215 * Minimum allocation alignment is 2^LG_QUANTUM bytes (ignoring tiny size 265 # error "Unknown minimum alignment for architecture; specify via " 318 #define ALIGNMENT_ADDR2BASE(a, alignment) \ argument 319 ((void *)((uintptr_t)(a) & (-(alignment)))) 322 #define ALIGNMENT_ADDR2OFFSET(a, alignment) \ argument 323 ((size_t)((uintptr_t)(a) & (alignment - 1))) 325 /* Return the smallest alignment multiple that is >= s. */ 326 #define ALIGNMENT_CEILING(s, alignment) \ argument [all …]
|
| D | jemalloc_internal.h.in | 189 * n: alignment 198 /* Use MALLOCX_ALIGN_GET() if alignment may not be specified in flags. */ 215 * Minimum allocation alignment is 2^LG_QUANTUM bytes (ignoring tiny size 265 # error "Unknown minimum alignment for architecture; specify via " 318 #define ALIGNMENT_ADDR2BASE(a, alignment) \ argument 319 ((void *)((uintptr_t)(a) & (-(alignment)))) 322 #define ALIGNMENT_ADDR2OFFSET(a, alignment) \ argument 323 ((size_t)((uintptr_t)(a) & (alignment - 1))) 325 /* Return the smallest alignment multiple that is >= s. */ 326 #define ALIGNMENT_CEILING(s, alignment) \ argument [all …]
|
| /external/llvm/unittests/Support/ |
| D | AlignOfTest.cpp | 1 //=== - llvm/unittest/Support/AlignOfTest.cpp - Alignment utility tests ----===// 11 // Disable warnings about alignment-based structure padding. 24 // We're testing that even questionable types work with the alignment utilities. 41 // Define some fixed alignment types to use in these tests. 92 // Ensure alignment is a compile-time constant. 94 [AlignOf<char>::Alignment > 0] 95 [AlignOf<short>::Alignment > 0] 96 [AlignOf<int>::Alignment > 0] 97 [AlignOf<long>::Alignment > 0] 98 [AlignOf<long long>::Alignment > 0] [all …]
|
| /external/llvm/lib/Transforms/Scalar/ |
| D | AlignmentFromAssumptions.cpp | 14 // complex alignment assumptions that apply to vector loads and stores that 19 #define AA_NAME "alignment-from-assumptions" 40 "Number of loads changed by alignment assumptions"); 42 "Number of stores changed by alignment assumptions"); 44 "Number of memory intrinsics changed by alignment assumptions"); 66 // For memory transfers, we need a common alignment for both the source and 67 // destination. If we have a new alignment for only one operand of a transfer 69 // another assumption later, then we may change the alignment at that point. 82 static const char aip_name[] = "Alignment from assumptions"; 95 // Given an expression for the (constant) alignment, AlignSCEV, and an [all …]
|
| /external/clang/lib/AST/ |
| D | RecordLayoutBuilder.cpp | 60 /// as alignment attributes on fields and pragmas in effect. 67 /// \brief Overall record alignment in bits. 580 /// Alignment - The current alignment of the record layout. 581 CharUnits Alignment; member in __anonc00f4a770111::RecordLayoutBuilder 583 /// \brief The alignment if attribute packed is not used. 592 /// \brief Whether we need to infer alignment, even when we have an 614 /// MaxFieldAlignment - The maximum allowed field alignment. This is set by 662 Alignment(CharUnits::One()), UnpackedAlignment(CharUnits::One()), in RecordLayoutBuilder() 743 /// alignment. 774 CharUnits getAligment() const { return Alignment; } in getAligment() [all …]
|
| /external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
| D | BillboardControl.java | 55 private Alignment alignment; field in BillboardControl 60 public enum Alignment { enum in BillboardControl 87 alignment = Alignment.Screen; in BillboardControl() 92 control.alignment = this.alignment; in cloneForSpatial() 126 switch (alignment) { in rotateBillboard() 271 * Returns the alignment this Billboard is set too. 273 * @return The alignment of rotation, AxialY, AxialZ, Camera or Screen. 275 public Alignment getAlignment() { in getAlignment() 276 return alignment; in getAlignment() 280 * Sets the type of rotation this Billboard will have. The alignment can [all …]
|
| /external/webrtc/src/system_wrappers/source/ |
| D | aligned_malloc.cc | 34 // Ok reference on memory alignment: 35 // http://stackoverflow.com/questions/227897/solve-the-memory-alignment-in-c-interview-question-tha… 48 void* AlignedMalloc(size_t size, size_t alignment) in AlignedMalloc() argument 50 if(alignment == 0) in AlignedMalloc() 52 // Don't allow alignment 0 since it's undefined. in AlignedMalloc() 55 // Make sure that the alignment is an integer power of two or fail. in AlignedMalloc() 56 if(alignment & (alignment - 1)) in AlignedMalloc() 68 // alignment - 1 bytes needs to be allocated. in AlignedMalloc() 72 alignment - 1); in AlignedMalloc() 84 // The buffer should be aligned with 'alignment' bytes. The - 1 guarantees in AlignedMalloc() [all …]
|
| /external/clang/lib/Sema/ |
| D | SemaAttr.cpp | 31 // alignment. 34 unsigned Alignment; member 43 /// Alignment - The current user specified alignment. 44 unsigned Alignment; member in __anon2ef2fa320111::PragmaPackStack 51 PragmaPackStack() : Alignment(0) {} in PragmaPackStack() 53 void setAlignment(unsigned A) { Alignment = A; } in setAlignment() 54 unsigned getAlignment() { return Alignment; } in getAlignment() 56 /// push - Push the current alignment onto the stack, optionally 59 PackStackEntry PSE = { Alignment, Name }; in push() 64 /// alignment to the previous value. If \arg Name is non-zero then [all …]
|
| /external/llvm/lib/ExecutionEngine/ |
| D | SectionMemoryManager.cpp | 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() [all …]
|
| /external/clang/test/Sema/ |
| D | ms_bitfield_layout.c | 18 // CHECK: Alignment:32 30 // CHECK: Alignment:16 42 // CHECK: Alignment:32 54 // CHECK: Alignment:8 67 // CHECK: Alignment:16 86 // CHECK: Alignment:16 99 // CHECK: Alignment:16 111 // CHECK: Alignment:16 121 // CHECK: Alignment:16 138 // CHECK: Alignment:8 [all …]
|
| /external/llvm/lib/IR/ |
| D | DataLayout.cpp | 1 //===-- DataLayout.cpp - Data size & alignment routines --------------------==// 10 // This file defines layout properties related to datatype size/offset/alignment 55 // Keep track of maximum alignment constraint. in StructLayout() 62 // Empty structures have alignment of 1 byte. in StructLayout() 99 assert(abi_align <= pref_align && "Preferred alignment worse than ABI!"); in get() 126 assert(ABIAlign <= PrefAlign && "Preferred alignment worse than ABI!"); in get() 261 // ABI alignment. in parseSpecifier() 264 "Missing alignment specification for pointer in datalayout string"); in parseSpecifier() 269 "Pointer ABI alignment must be a power of 2"); in parseSpecifier() 271 // Preferred alignment. in parseSpecifier() [all …]
|
| /external/llvm/include/llvm/IR/ |
| D | DataLayout.h | 1 //===--------- llvm/DataLayout.h - Data size & alignment info ---*- C++ -*-===// 10 // This file defines layout properties related to datatype size/offset/alignment 47 /// Enum used to categorize the alignment types stored by LayoutAlignElem 56 // FIXME: Currently the DataLayout string carries a "preferred alignment" 61 /// \brief Layout alignment element. 63 /// Stores the alignment data associated with a given alignment type (integer, 69 /// \brief Alignment type from \c AlignTypeEnum 80 /// \brief Layout pointer alignment element. 82 /// Stores the alignment data associated with a given pointer and address space. 123 /// \brief Primitive type alignment data. [all …]
|
| /external/eigen/test/ |
| D | dynalloc.cpp | 13 #define ALIGNMENT 16 macro 15 #define ALIGNMENT 1 macro 23 VERIFY(size_t(p)%ALIGNMENT==0); in check_handmade_aligned_malloc() 35 VERIFY(size_t(p)%ALIGNMENT==0); in check_aligned_malloc() 47 VERIFY(size_t(p)%ALIGNMENT==0); in check_aligned_new() 59 VERIFY(size_t(p)%ALIGNMENT==0); in check_aligned_stack_alloc() 86 VERIFY(size_t(obj)%ALIGNMENT==0); in check_dynaligned() 110 MyStruct foo0; VERIFY(size_t(foo0.avec.data())%ALIGNMENT==0); in test_dynalloc() 111 MyClassA fooA; VERIFY(size_t(fooA.avec.data())%ALIGNMENT==0); in test_dynalloc() 117 MyStruct *foo0 = new MyStruct(); VERIFY(size_t(foo0->avec.data())%ALIGNMENT==0); in test_dynalloc() [all …]
|