Home
last modified time | relevance | path

Searched full:alignment (Results 1 – 25 of 5293) sorted by relevance

12345678910>>...212

/external/deqp/framework/delibs/decpp/
DdePoolArray.hpp38 template<typename T, deUint32 Alignment>
41 template<typename T, deUint32 Alignment>
51 template<typename T, deUint32 Alignment = (sizeof(T) > sizeof(void*) ? (deUint32)sizeof(void*) : (d…
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…
114 template<typename T, deUint32 Alignment>
127 template<typename T, deUint32 Alignment>
128 class PoolArrayConstIterator : public PoolArrayIteratorBase<T, Alignment>
[all …]
DdeArrayBuffer.hpp36 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() in ArrayBuffer()
83 template <typename T, size_t Alignment, size_t Stride>
84 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) in ArrayBuffer()
92 void* const ptr = detail::ArrayBuffer_AlignedMalloc(storageSize, Alignment); in ArrayBuffer()
102 template <typename T, size_t Alignment, size_t Stride>
103 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const T* ptr, size_t numElements) in ArrayBuffer()
110 ArrayBuffer<T,Alignment,Stride> tmp(numElements); in ArrayBuffer()
[all …]
/external/jemalloc_new/test/integration/
Dposix_memalign.c17 size_t alignment; in TEST_BEGIN() local
20 for (alignment = 0; alignment < sizeof(void *); alignment++) { in TEST_BEGIN()
21 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
22 "Expected error for invalid alignment %zu", in TEST_BEGIN()
23 alignment); in TEST_BEGIN()
26 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
27 alignment <<= 1) { in TEST_BEGIN()
28 assert_d_ne(posix_memalign(&p, alignment + 1, 1), 0, in TEST_BEGIN()
29 "Expected error for invalid alignment %zu", in TEST_BEGIN()
30 alignment + 1); in TEST_BEGIN()
[all …]
Daligned_alloc.c17 size_t alignment; in TEST_BEGIN() local
20 alignment = 0; in TEST_BEGIN()
22 p = aligned_alloc(alignment, 1); in TEST_BEGIN()
24 "Expected error for invalid alignment %zu", alignment); in TEST_BEGIN()
26 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
27 alignment <<= 1) { in TEST_BEGIN()
29 p = aligned_alloc(alignment + 1, 1); in TEST_BEGIN()
31 "Expected error for invalid alignment %zu", in TEST_BEGIN()
32 alignment + 1); in TEST_BEGIN()
38 size_t alignment, size; in TEST_BEGIN() local
[all …]
/external/jemalloc/test/integration/
Dposix_memalign.c21 size_t alignment; in TEST_BEGIN() local
24 for (alignment = 0; alignment < sizeof(void *); alignment++) { in TEST_BEGIN()
25 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
26 "Expected error for invalid alignment %zu", in TEST_BEGIN()
27 alignment); in TEST_BEGIN()
30 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
31 alignment <<= 1) { in TEST_BEGIN()
32 assert_d_ne(posix_memalign(&p, alignment + 1, 1), 0, in TEST_BEGIN()
33 "Expected error for invalid alignment %zu", in TEST_BEGIN()
34 alignment + 1); in TEST_BEGIN()
[all …]
Daligned_alloc.c21 size_t alignment; in TEST_BEGIN() local
24 alignment = 0; in TEST_BEGIN()
26 p = aligned_alloc(alignment, 1); in TEST_BEGIN()
28 "Expected error for invalid alignment %zu", alignment); in TEST_BEGIN()
30 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN()
31 alignment <<= 1) { in TEST_BEGIN()
33 p = aligned_alloc(alignment + 1, 1); in TEST_BEGIN()
35 "Expected error for invalid alignment %zu", in TEST_BEGIN()
36 alignment + 1); in TEST_BEGIN()
43 size_t alignment, size; in TEST_BEGIN() local
[all …]
/external/python/cpython2/Lib/lib2to3/tests/data/
Dinfinite_recursion.py41 assert alignment(__mbstate_t) == 4, alignment(__mbstate_t)
77 assert alignment(sigcontext) == 4, alignment(sigcontext)
101 assert alignment(aes_key_st) == 4, alignment(aes_key_st)
119 assert alignment(asn1_ctx_st) == 4, alignment(asn1_ctx_st)
132 assert alignment(asn1_object_st) == 4, alignment(asn1_object_st)
143 assert alignment(asn1_string_st) == 4, alignment(asn1_string_st)
153 assert alignment(ASN1_ENCODING_st) == 4, alignment(ASN1_ENCODING_st)
165 assert alignment(asn1_string_table_st) == 4, alignment(asn1_string_table_st)
230 assert alignment(N12asn1_type_st4DOLLAR_11E) == 4, alignment(N12asn1_type_st4DOLLAR_11E)
236 assert alignment(asn1_type_st) == 4, alignment(asn1_type_st)
[all …]
/external/python/cpython3/Lib/lib2to3/tests/data/
Dinfinite_recursion.py41 assert alignment(__mbstate_t) == 4, alignment(__mbstate_t)
77 assert alignment(sigcontext) == 4, alignment(sigcontext)
101 assert alignment(aes_key_st) == 4, alignment(aes_key_st)
119 assert alignment(asn1_ctx_st) == 4, alignment(asn1_ctx_st)
132 assert alignment(asn1_object_st) == 4, alignment(asn1_object_st)
143 assert alignment(asn1_string_st) == 4, alignment(asn1_string_st)
153 assert alignment(ASN1_ENCODING_st) == 4, alignment(ASN1_ENCODING_st)
165 assert alignment(asn1_string_table_st) == 4, alignment(asn1_string_table_st)
230 assert alignment(N12asn1_type_st4DOLLAR_11E) == 4, alignment(N12asn1_type_st4DOLLAR_11E)
236 assert alignment(asn1_type_st) == 4, alignment(asn1_type_st)
[all …]
/external/skqp/tests/
DSkSLMemoryLayoutTest.cpp35 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fFloat_Type)); in DEF_TEST()
36 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fFloat2_Type)); in DEF_TEST()
37 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fFloat3_Type)); in DEF_TEST()
38 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fFloat4_Type)); in DEF_TEST()
39 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fInt_Type)); in DEF_TEST()
40 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fInt2_Type)); in DEF_TEST()
41 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fInt3_Type)); in DEF_TEST()
42 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fInt4_Type)); in DEF_TEST()
43 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fBool_Type)); in DEF_TEST()
44 REPORTER_ASSERT(r, 2 == layout.alignment(*context.fBool2_Type)); in DEF_TEST()
[all …]
/external/skia/tests/
DSkSLMemoryLayoutTest.cpp35 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fFloat_Type)); in DEF_TEST()
36 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fFloat2_Type)); in DEF_TEST()
37 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fFloat3_Type)); in DEF_TEST()
38 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fFloat4_Type)); in DEF_TEST()
39 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fInt_Type)); in DEF_TEST()
40 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fInt2_Type)); in DEF_TEST()
41 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fInt3_Type)); in DEF_TEST()
42 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fInt4_Type)); in DEF_TEST()
43 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fBool_Type)); in DEF_TEST()
44 REPORTER_ASSERT(r, 2 == layout.alignment(*context.fBool2_Type)); in DEF_TEST()
[all …]
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/
Dp5.cpp3 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/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetData.h1 //===-- llvm/Target/TargetData.h - Data size & alignment info ---*- C++ -*-===//
10 // This file defines target properties related to datatype size/offset/alignment
39 /// Enum used to categorize the alignment types stored by TargetAlignElem
41 INTEGER_ALIGN = 'i', ///< Integer type alignment
42 VECTOR_ALIGN = 'v', ///< Vector type alignment
43 FLOAT_ALIGN = 'f', ///< Floating point type alignment
44 AGGREGATE_ALIGN = 'a', ///< Aggregate alignment
45 STACK_ALIGN = 's' ///< Stack objects alignment
48 /// Target alignment element.
50 /// Stores the alignment data associated with a given alignment type (pointer,
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DAlignOf.h1 //===--- 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 = enumerator
40 enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 };
41 enum { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 };
42 enum { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 };
[all …]
/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/
Dtrt_allocator.cc32 // nvinfer1::IGpuAllocator::allocate() uses uint64_t type for size and alignment
34 void* Align(uint64_t alignment, uint64_t size, void*& ptr, uint64_t& space) { in Align() argument
35 QCHECK_GT(alignment, 0ul) << "alignment must be greater than 0."; in Align()
36 QCHECK_EQ(0, alignment & (alignment - 1)) << "Alignment must be power of 2."; in Align()
44 const uintptr_t aligned_ptr_val = ((ptr_val + alignment - 1) & -alignment); in Align()
61 void* TRTCudaAllocator::allocate(uint64_t size, uint64_t alignment, in allocate() argument
63 assert((alignment & (alignment - 1)) == 0); // zero or a power of 2. in allocate()
71 void* TRTDeviceAllocator::allocate(uint64_t size, uint64_t alignment, in allocate() argument
74 // WAR for allocator alignment requirement. Certain cuda API calls require GPU in allocate()
75 // memory with alignment to cudaDeviceProp::textureAlignment. in allocate()
[all …]
Dtrt_allocator_test.cc23 bool RunTest(const uint64_t alignment, const uint64_t size, in RunTest() argument
28 void* result = Align(alignment, size, ptr, space); in RunTest()
36 EXPECT_EQ(0, ptr_val % alignment); in RunTest()
49 for (uint64_t alignment = 1; alignment <= space * 4; alignment *= 2) { in TEST() local
52 alignment == 1 ? static_cast<uint64_t>(1) : alignment - 1, in TEST()
53 alignment, alignment + 1, alignment + (alignment / 2)}) { in TEST()
54 if (ptr_val % alignment == 0) { in TEST()
59 EXPECT_EQ(space >= size, RunTest(alignment, size, ptr_val, space)); in TEST()
62 EXPECT_FALSE(RunTest(alignment, space, ptr_val, space)); in TEST()
63 const uint64_t diff = alignment - ptr_val % alignment; in TEST()
[all …]
/external/llvm/include/llvm/Support/
DAlignOf.h1 //===--- 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 necessarily
67 /// the "desired" alignment returned by GCC's __alignof__ (for example). Note
68 /// that because the alignment is an enum value, it can be used as a
[all …]
/external/webrtc/webrtc/system_wrappers/source/
Daligned_malloc.cc24 // Reference on memory alignment:
25 // http://stackoverflow.com/questions/227897/solve-the-memory-alignment-in-c-interview-question-tha…
28 uintptr_t GetRightAlign(uintptr_t start_pos, size_t alignment) { in GetRightAlign() argument
29 // The pointer should be aligned with |alignment| bytes. The - 1 guarantees in GetRightAlign()
31 return (start_pos + alignment - 1) & ~(alignment - 1); in GetRightAlign()
34 // Alignment must be an integer power of two.
35 bool ValidAlignment(size_t alignment) { in ValidAlignment() argument
36 if (!alignment) { in ValidAlignment()
39 return (alignment & (alignment - 1)) == 0; in ValidAlignment()
42 void* GetRightAlign(const void* pointer, size_t alignment) { in GetRightAlign() argument
[all …]
/external/llvm/test/MC/ARM/
Dneon-vld-vst-align.s13 @ 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/swiftshader/third_party/llvm-7.0/llvm/test/MC/ARM/
Dneon-vld-vst-align.s13 @ CHECK-ERRORS: alignment must be 64 or omitted
16 @ CHECK-ERRORS: alignment must be 64 or omitted
20 @ CHECK-ERRORS: alignment must be 64 or omitted
23 @ CHECK-ERRORS: alignment must be 64 or omitted
35 @ CHECK-ERRORS: alignment must be 64 or omitted
38 @ CHECK-ERRORS: alignment must be 64 or omitted
42 @ CHECK-ERRORS: alignment must be 64 or omitted
45 @ CHECK-ERRORS: alignment must be 64 or omitted
57 @ CHECK-ERRORS: alignment must be 64 or omitted
60 @ CHECK-ERRORS: alignment must be 64 or omitted
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DResourceAlignmentExtraField.java41 * Extra field id used for storing alignment and padding.
49 private short alignment; field in ResourceAlignmentExtraField
58 public ResourceAlignmentExtraField(int alignment) { in ResourceAlignmentExtraField() argument
59 this(alignment, false); in ResourceAlignmentExtraField()
62 public ResourceAlignmentExtraField(int alignment, boolean allowMethodChange) { in ResourceAlignmentExtraField() argument
63 this(alignment, allowMethodChange, 0); in ResourceAlignmentExtraField()
66 public ResourceAlignmentExtraField(int alignment, boolean allowMethodChange, int padding) { in ResourceAlignmentExtraField() argument
67 if (alignment < 0 || alignment > 0x7fff) { in ResourceAlignmentExtraField()
68 … throw new IllegalArgumentException("Alignment must be between 0 and 0x7fff, was: " + alignment); in ResourceAlignmentExtraField()
70 this.alignment = (short) alignment; in ResourceAlignmentExtraField()
[all …]
/external/skia/src/sksl/
DSkSLMemoryLayout.h45 * Returns a type's required alignment when used as a standalone variable.
47 size_t alignment(const Type& type) const { in alignment() function
58 return this->roundUpIfNeeded(this->alignment(type.componentType())); in alignment()
62 size_t alignment = this->alignment(*f.fType); in alignment() local
63 if (alignment > result) { in alignment()
64 result = alignment; in alignment()
85 int align = this->alignment(type.componentType()); in stride()
118 size_t alignment = this->alignment(*f.fType); in size() local
119 if (total % alignment != 0) { in size()
120 total += alignment - total % alignment; in size()
[all …]
/external/skqp/src/sksl/
DSkSLMemoryLayout.h45 * Returns a type's required alignment when used as a standalone variable.
47 size_t alignment(const Type& type) const { in alignment() function
58 return this->roundUpIfNeeded(this->alignment(type.componentType())); in alignment()
62 size_t alignment = this->alignment(*f.fType); in alignment() local
63 if (alignment > result) { in alignment()
64 result = alignment; in alignment()
85 int align = this->alignment(type.componentType()); in stride()
118 size_t alignment = this->alignment(*f.fType); in size() local
119 if (total % alignment != 0) { in size()
120 total += alignment - total % alignment; in size()
[all …]
/external/python/google-api-python-client/docs/dyn/
Dgenomics_v1.reads.html97 alignment to the reference genome overlap the range. A query which
157 { # A read alignment describes a linear alignment of a string of DNA to a
169 # Mapped reads (reads having a non-null `alignment`) can be aligned to either
171 # of a mapped read is encoded by `alignment.position.reverseStrand`.
176 # to right. That is, `alignment.position.position` always refers to the
177 # left-most reference coordinate and `alignment.cigar` describes the alignment
188 # representing the local alignment of the read to reference. The following
193 # for c in read.alignment.cigar {
235 # for c in read.alignment.cigar {
239 "info": { # A map of additional read alignment information. This must be of the form
[all …]
/external/llvm/lib/Transforms/Utils/
DASanStackFrameLayout.cpp21 // 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 alignTo(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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineFrameInfo.cpp39 /// Clamp the alignment if requested and emit a warning.
44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << Align in clampStackAlignment()
45 << " exceeds the stack alignment " << StackAlign in clampStackAlignment()
50 int MachineFrameInfo::CreateStackObject(uint64_t Size, unsigned Alignment, in CreateStackObject() argument
55 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject()
56 Objects.push_back(StackObject(Size, Alignment, 0, false, IsSpillSlot, Alloca, in CreateStackObject()
60 ensureMaxAlignment(Alignment); in CreateStackObject()
65 unsigned Alignment) { in CreateSpillStackObject() argument
66 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateSpillStackObject()
67 CreateStackObject(Size, Alignment, true); in CreateSpillStackObject()
[all …]

12345678910>>...212