Home
last modified time | relevance | path

Searched refs:Align (Results 1 – 25 of 722) sorted by relevance

12345678910>>...29

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAlignment.h40 struct Align { struct
46 friend unsigned Log2(Align);
47 friend bool operator==(Align Lhs, Align Rhs);
48 friend bool operator!=(Align Lhs, Align Rhs);
49 friend bool operator<=(Align Lhs, Align Rhs);
50 friend bool operator>=(Align Lhs, Align Rhs);
51 friend bool operator<(Align Lhs, Align Rhs);
52 friend bool operator>(Align Lhs, Align Rhs);
69 constexpr Align() = default; argument
72 constexpr Align(const Align &Other) = default;
[all …]
DRecycler.h27 void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize);
33 template <class T, size_t Size = sizeof(T), size_t Align = alignof(T)>
84 static_assert(alignof(SubClass) <= Align, in Allocate()
89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
105 template <class T, size_t Size, size_t Align>
106 void Recycler<T, Size, Align>::PrintStats() { in PrintStats()
110 PrintRecyclerStats(Size, Align, S); in PrintStats()
DRecyclingAllocator.h25 size_t Align = alignof(T)>
30 Recycler<T, Size, Align> Base;
61 template<class AllocatorType, class T, size_t Size, size_t Align>
64 T, Size, Align> &Allocator) { in new()
69 template<class AllocatorType, class T, size_t Size, size_t Align>
72 T, Size, Align> &A) { in delete()
/third_party/skia/src/core/
DSkBlockAllocator.h85 template <size_t Align = 1, size_t Padding = 0>
86 int avail() const { return std::max(0, fSize - this->cursor<Align, Padding>()); } in avail()
92 template <size_t Align = 1, size_t Padding = 0>
93 int firstAlignedOffset() const { return this->alignedOffset<Align, Padding>(kDataStart); } in firstAlignedOffset()
145 template <size_t Align, size_t Padding>
146 int cursor() const { return this->alignedOffset<Align, Padding>(fCursor); } in cursor()
148 template <size_t Align, size_t Padding>
195 template<size_t Align = 1, size_t Padding = 0>
204 template<size_t Align = 1, size_t Padding = 0>
281 template <size_t Align, size_t Padding = 0>
[all …]
/third_party/skia/third_party/externals/tint/src/resolver/
Dstruct_layout_test.cc41 EXPECT_EQ(sem->Align(), 4u); in TEST_F()
44 EXPECT_EQ(sem->Members()[0]->Align(), 4u); in TEST_F()
47 EXPECT_EQ(sem->Members()[1]->Align(), 4u); in TEST_F()
50 EXPECT_EQ(sem->Members()[2]->Align(), 4u); in TEST_F()
69 EXPECT_EQ(sem->Align(), 4u); in TEST_F()
72 EXPECT_EQ(sem->Members()[0]->Align(), 4u); in TEST_F()
75 EXPECT_EQ(sem->Members()[1]->Align(), 4u); in TEST_F()
92 EXPECT_EQ(sem->Align(), 4u); in TEST_F()
95 EXPECT_EQ(sem->Members()[0]->Align(), 4u); in TEST_F()
98 EXPECT_EQ(sem->Members()[1]->Align(), 4u); in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDataLayout.cpp55 const Align TyAlign(ST->isPacked() ? 1 : DL.getABITypeAlignment(Ty)); in StructLayout()
102 LayoutAlignElem LayoutAlignElem::get(AlignTypeEnum align_type, Align abi_align, in get()
103 Align pref_align, uint32_t bit_width) { in get()
125 PointerAlignElem PointerAlignElem::get(uint32_t AddressSpace, Align ABIAlign, in get()
126 Align PrefAlign, uint32_t TypeByteWidth, in get()
160 {INTEGER_ALIGN, 1, Align(1), Align(1)}, // i1
161 {INTEGER_ALIGN, 8, Align(1), Align(1)}, // i8
162 {INTEGER_ALIGN, 16, Align(2), Align(2)}, // i16
163 {INTEGER_ALIGN, 32, Align(4), Align(4)}, // i32
164 {INTEGER_ALIGN, 64, Align(4), Align(8)}, // i64
[all …]
/third_party/boost/libs/endian/test/
Dendian_arithmetic_test.cpp12 …ENUM(boost::endian::order) Order, BOOST_SCOPED_ENUM(boost::endian::align) Align, class T> void tes… in test_arithmetic_()
14 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y( x ); in test_arithmetic_()
26 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
33 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
40 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
47 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
54 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
61 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
68 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
75 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Draw_hash_set_probe_benchmark.cc198 template <int Align>
200 alignas(Align) static constexpr uintptr_t kInitPointer = 0; in PointerForAlignment()
209 template <int Align>
212 template <int Align>
213 Ptr<Align>* MakePtr(uintptr_t v) { in MakePtr()
220 return reinterpret_cast<Ptr<Align>*>(v); in MakePtr()
229 template <int Align>
231 explicit PtrIdentity(uintptr_t val = PointerForAlignment<Align>()) : i(val) {} in PtrIdentity()
236 i += Align; in operator ++()
258 template <int Align>
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMBasicBlockInfo.h33 inline unsigned UnknownPadding(Align Alignment, unsigned KnownBits) { in UnknownPadding()
71 Align PostAlign;
90 unsigned postOffset(Align Alignment = Align::None()) const {
92 const Align PA = std::max(PostAlign, Alignment);
93 if (PA == Align::None())
104 unsigned postKnownBits(Align Align = Align::None()) const {
105 return std::max(Log2(std::max(PostAlign, Align)), internalKnownBits());
DARMBasicBlockInfo.cpp52 BBI.PostAlign = Align::None(); in computeBlockSize()
67 BBI.PostAlign = Align(4); in computeBlockSize()
68 MBB->getParent()->ensureAlignment(Align(4)); in computeBlockSize()
131 const Align Align = MF.getBlockNumbered(i)->getAlignment(); in adjustBBOffsetsAfter() local
132 const unsigned Offset = BBInfo[i - 1].postOffset(Align); in adjustBBOffsetsAfter()
133 const unsigned KnownBits = BBInfo[i - 1].postKnownBits(Align); in adjustBBOffsetsAfter()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDataLayout.h75 Align ABIAlign;
76 Align PrefAlign;
78 static LayoutAlignElem get(AlignTypeEnum align_type, Align abi_align,
79 Align pref_align, uint32_t bit_width);
91 Align ABIAlign;
92 Align PrefAlign;
98 static PointerAlignElem get(uint32_t AddressSpace, Align ABIAlign,
99 Align PrefAlign, uint32_t TypeByteWidth,
176 void setAlignment(AlignTypeEnum align_type, Align abi_align, Align pref_align,
178 Align getAlignmentInfo(AlignTypeEnum align_type, uint32_t bit_width,
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp74 TEST(Math, Align) { in TEST() argument
76 ASSERT_EQ(Align(0, 4), 0u); in TEST()
77 ASSERT_EQ(Align(0, 256), 0u); in TEST()
78 ASSERT_EQ(Align(0, 512), 0u); in TEST()
81 ASSERT_EQ(Align(8, 8), 8u); in TEST()
82 ASSERT_EQ(Align(16, 8), 16u); in TEST()
83 ASSERT_EQ(Align(24, 8), 24u); in TEST()
84 ASSERT_EQ(Align(256, 256), 256u); in TEST()
85 ASSERT_EQ(Align(512, 256), 512u); in TEST()
86 ASSERT_EQ(Align(768, 256), 768u); in TEST()
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dalign_test.dart10 testWidgets('Align smoke test', (WidgetTester tester) async {
12 Align(
19 Align(
26 const Align(
33 child: Align(
39 const Align(
46 testWidgets('Align control test (LTR)', (WidgetTester tester) async {
49 child: Align(
60 child: Align(
70 testWidgets('Align control test (RTL)', (WidgetTester tester) async {
[all …]
Dcontainer_test.dart39 await tester.pumpWidget(Align(
125 ' │ creator: Padding ← Container ← Align ← [root]\n'
132 ' │ creator: ConstrainedBox ← Padding ← Container ← Align ← [root]\n'
140 ' │ Align ← [root]\n'
152 ' │ Container ← Align ← [root]\n'
164 ' │ Padding ← Container ← Align ← [root]\n'
171 ' │ creator: Align ← Padding ← DecoratedBox ← DecoratedBox ←\n'
172 ' │ ConstrainedBox ← Padding ← Container ← Align ← [root]\n'
181 ' │ creator: SizedBox ← Align ← Padding ← DecoratedBox ← DecoratedBox\n'
182 ' │ ← ConstrainedBox ← Padding ← Container ← Align ← [root]\n'
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java30 import com.google.typography.font.tools.fontinfo.DataDisplayTable.Align;
82 Align[] displayAlignment = { Align.Left, Align.Left }; in listFontMetrics()
132 Align[] displayAlignment = { Align.Left, Align.Right, Align.Right, Align.Right }; in listTables()
177 Align[] displayAlignment = { Align.Left, Align.Left, Align.Left, Align.Left, Align.Left }; in listNameEntries()
225 Align[] displayAlignment = { Align.Right, Align.Right, Align.Right }; in listCmaps()
277 Align[] displayAlignment = { Align.Right, Align.Right, Align.Left }; in listChars()
310 Align[] displayAlignment = { Align.Left, Align.Right }; in listCharBlockCoverage()
365 Align[] displayAlignment = { Align.Left, Align.Right }; in listScriptCoverage()
418 Align[] displayAlignment = { Align.Left, Align.Right, Align.Left }; in listCharsNeededToCoverScript()
489 Align[] displayAlignment = { Align.Left, Align.Right }; in listGlyphDimensionBounds()
[all …]
DDataDisplayTable.java20 private List<Align> displayAlignment;
27 public enum Align { enum in DataDisplayTable
56 displayAlignment = new ArrayList<Align>(numCols); in DataDisplayTable()
58 displayAlignment.add(Align.Left); in DataDisplayTable()
70 public void setAlignment(List<Align> alignment) { in setAlignment()
75 displayAlignment = Collections.unmodifiableList(new ArrayList<Align>(alignment)); in setAlignment()
144 public List<Align> getDisplayAlignment() { in getDisplayAlignment()
169 if (displayAlignment.get(numCols - 1) == Align.Left) { in prettyString()
191 if (displayAlignment.get(numCols - 1) == Align.Left) { in prettyString()
302 private static String padString(String s, Align alignment, int minLength) { in padString()
[all …]
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java30 import com.google.typography.font.tools.fontinfo.DataDisplayTable.Align;
82 Align[] displayAlignment = { Align.Left, Align.Left }; in listFontMetrics()
132 Align[] displayAlignment = { Align.Left, Align.Right, Align.Right, Align.Right }; in listTables()
177 Align[] displayAlignment = { Align.Left, Align.Left, Align.Left, Align.Left, Align.Left }; in listNameEntries()
225 Align[] displayAlignment = { Align.Right, Align.Right, Align.Right }; in listCmaps()
277 Align[] displayAlignment = { Align.Right, Align.Right, Align.Left }; in listChars()
310 Align[] displayAlignment = { Align.Left, Align.Right }; in listCharBlockCoverage()
365 Align[] displayAlignment = { Align.Left, Align.Right }; in listScriptCoverage()
418 Align[] displayAlignment = { Align.Left, Align.Right, Align.Left }; in listCharsNeededToCoverScript()
489 Align[] displayAlignment = { Align.Left, Align.Right }; in listGlyphDimensionBounds()
[all …]
DDataDisplayTable.java20 private List<Align> displayAlignment;
27 public enum Align { enum in DataDisplayTable
56 displayAlignment = new ArrayList<Align>(numCols); in DataDisplayTable()
58 displayAlignment.add(Align.Left); in DataDisplayTable()
70 public void setAlignment(List<Align> alignment) { in setAlignment()
75 displayAlignment = Collections.unmodifiableList(new ArrayList<Align>(alignment)); in setAlignment()
144 public List<Align> getDisplayAlignment() { in getDisplayAlignment()
169 if (displayAlignment.get(numCols - 1) == Align.Left) { in prettyString()
191 if (displayAlignment.get(numCols - 1) == Align.Left) { in prettyString()
302 private static String padString(String s, Align alignment, int minLength) { in padString()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineFrameInfo.cpp31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { in ensureMaxAlignment()
40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment, in clampStackAlignment()
41 Align StackAlignment) { in clampStackAlignment()
50 int MachineFrameInfo::CreateStackObject(uint64_t Size, Align Alignment, in CreateStackObject()
65 int MachineFrameInfo::CreateSpillStackObject(uint64_t Size, Align Alignment) { in CreateSpillStackObject()
73 int MachineFrameInfo::CreateVariableSizedObject(Align Alignment, in CreateVariableSizedObject()
91 Align Alignment = in CreateFixedObject()
92 commonAlignment(ForcedRealign ? Align::None() : StackAlignment, SPOffset); in CreateFixedObject()
104 Align Alignment = in CreateFixedSpillStackObject()
105 commonAlignment(ForcedRealign ? Align::None() : StackAlignment, SPOffset); in CreateFixedSpillStackObject()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp154 TEST(Math, Align) { in TEST() argument
156 ASSERT_EQ(Align(0u, 4), 0u); in TEST()
157 ASSERT_EQ(Align(0u, 256), 0u); in TEST()
158 ASSERT_EQ(Align(0u, 512), 0u); in TEST()
161 ASSERT_EQ(Align(8u, 8), 8u); in TEST()
162 ASSERT_EQ(Align(16u, 8), 16u); in TEST()
163 ASSERT_EQ(Align(24u, 8), 24u); in TEST()
164 ASSERT_EQ(Align(256u, 256), 256u); in TEST()
165 ASSERT_EQ(Align(512u, 256), 512u); in TEST()
166 ASSERT_EQ(Align(768u, 256), 768u); in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXPrologEpilogPass.cpp108 unsigned Align = MFI.getObjectAlignment(FrameIdx); in AdjustStackOffset() local
112 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
115 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset()
181 unsigned Align = MFI.getLocalFrameMaxAlign().value(); in calculateFrameObjectOffsets() local
184 Offset = (Offset + Align - 1) / Align * Align; in calculateFrameObjectOffsets()
199 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h672 inline uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew = 0) {
673 assert(Align != 0u && "Align can't be 0.");
674 Skew %= Align;
675 return (Value + Align - 1 - Skew) / Align * Align + Skew;
680 template <uint64_t Align> constexpr inline uint64_t alignTo(uint64_t Value) {
681 static_assert(Align != 0u, "Align must be non-zero");
682 return (Value + Align - 1) / Align * Align;
689 template <uint64_t Align>
691 static_assert(Align != 0u, "Align must be non-zero");
694 static const uint64_t value = (Value + Align - 1) / Align * Align;
[all …]
DFormatVariadic.h51 ReplacementItem(StringRef Spec, size_t Index, size_t Align, AlignStyle Where, in ReplacementItem()
53 : Type(ReplacementType::Format), Spec(Spec), Index(Index), Align(Align), in ReplacementItem()
59 size_t Align = 0; member
86 size_t &Align, char &Pad);
112 FmtAlign Align(*W, R.Where, R.Align); in format()
113 Align.format(S, R.Options); in format()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h133 Align Alignment;
184 StackObject(uint64_t Size, Align Alignment, int64_t SPOffset,
193 Align StackAlignment;
263 Align MaxAlignment;
307 Align LocalFrameMaxAlign;
422 void setLocalFrameMaxAlign(Align Alignment) { in setLocalFrameMaxAlign()
427 Align getLocalFrameMaxAlign() const { return LocalFrameMaxAlign; } in getLocalFrameMaxAlign()
471 void setObjectAlignment(int ObjectIdx, unsigned Align) { in setObjectAlignment() argument
474 Objects[ObjectIdx + NumFixedObjects].Alignment = assumeAligned(Align); in setObjectAlignment()
478 ensureMaxAlignment(Align); in setObjectAlignment()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp48 SDValue Size, unsigned Align, bool isVolatile, in EmitTargetCodeForMemset() argument
68 if ((Align & 3) != 0 || !ConstantSize || in EmitTargetCodeForMemset()
114 switch (Align & 3) { in EmitTargetCodeForMemset()
125 if (Subtarget.is64Bit() && ((Align & 0x7) == 0)) { // QWORD aligned in EmitTargetCodeForMemset()
177 Align, isVolatile, false, in EmitTargetCodeForMemset()
217 uint64_t Align) { in getOptimalRepmovsType() argument
218 assert((Align != 0) && "Align is normalized"); in getOptimalRepmovsType()
219 assert(isPowerOf2_64(Align) && "Align is a power of 2"); in getOptimalRepmovsType()
220 switch (Align) { in getOptimalRepmovsType()
239 unsigned Align, bool isVolatile, bool AlwaysInline, in emitConstantSizeRepmov() argument
[all …]

12345678910>>...29