/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | alignment_test.dart | 10 void approxExpect(Alignment a, Alignment b) { 16 test('Alignment control test', () { 17 const Alignment alignment = Alignment(0.5, 0.25); 20 expect(alignment.hashCode, equals(const Alignment(0.5, 0.25).hashCode)); 22 expect(alignment / 2.0, const Alignment(0.25, 0.125)); 23 expect(alignment ~/ 2.0, const Alignment(0.0, 0.0)); 24 expect(alignment % 5.0, const Alignment(0.5, 0.25)); 27 test('Alignment.lerp()', () { 28 const Alignment a = Alignment.topLeft; 29 const Alignment b = Alignment.topCenter; [all …]
|
D | gradient_test.dart | 12 begin: Alignment.bottomRight, 13 end: Alignment(0.7, 1.0), 23 begin: Alignment.bottomRight, 24 end: Alignment(0.7, 1.0), 35 begin: Alignment.topLeft, 36 end: Alignment.bottomLeft, 43 begin: Alignment.topRight, 44 end: Alignment.topLeft, 53 begin: Alignment(0.0, -1.0), 54 end: Alignment(-1.0, 0.0), [all …]
|
/third_party/boost/libs/align/test/ |
D | aligned_allocator_test.cpp | 13 template<std::size_t Alignment> 17 boost::alignment::aligned_allocator<int, Alignment> a; in test_allocate() 20 BOOST_TEST(boost::alignment::is_aligned(p, Alignment)); in test_allocate() 25 boost::alignment::aligned_allocator<int, Alignment> a; in test_allocate() 31 template<std::size_t Alignment> 34 boost::alignment::aligned_allocator<int, Alignment> a; in test_construct() 42 template<std::size_t Alignment> 46 boost::alignment::aligned_allocator<char, Alignment> a1; in test_constructor() 47 boost::alignment::aligned_allocator<int, Alignment> a2(a1); in test_constructor() 51 boost::alignment::aligned_allocator<char, Alignment> a1; in test_constructor() [all …]
|
D | align_test.cpp | 12 template<std::size_t Alignment> 15 char s[Alignment << 1]; in test() 17 while (!boost::alignment::is_aligned(b, Alignment)) { in test() 21 std::size_t n = Alignment; in test() 23 void* q = boost::alignment::align(Alignment, 1, p, n); in test() 26 BOOST_TEST(boost::alignment::is_aligned(q, Alignment)); in test() 27 BOOST_TEST(n == Alignment); in test() 32 void* q = boost::alignment::align(Alignment, 1, p, n); in test() 38 std::size_t n = Alignment - 1; in test() 40 void* q = boost::alignment::align(Alignment, 1, p, n); in test() [all …]
|
D | aligned_allocator_adaptor_test.cpp | 72 template<std::size_t Alignment> 76 boost::alignment::aligned_allocator_adaptor<A<int>, Alignment> a(5); in test_allocate() 79 BOOST_TEST(boost::alignment::is_aligned(p, Alignment)); in test_allocate() 84 boost::alignment::aligned_allocator_adaptor<A<int>, Alignment> a(5); in test_allocate() 88 BOOST_TEST(boost::alignment::is_aligned(q, Alignment)); in test_allocate() 94 boost::alignment::aligned_allocator_adaptor<A<int>, Alignment> a(5); in test_allocate() 100 template<std::size_t Alignment> 103 boost::alignment::aligned_allocator_adaptor<A<int>, Alignment> a(5); in test_construct() 111 template<std::size_t Alignment> 115 boost::alignment::aligned_allocator_adaptor<A<char>, Alignment> a(5); in test_constructor() [all …]
|
D | align_down_test.cpp | 12 template<std::size_t Alignment> 15 char s[Alignment << 1]; in test() 17 while (!boost::alignment::is_aligned(b, Alignment)) { in test() 21 void* p = &b[Alignment]; in test() 22 BOOST_TEST(boost::alignment::align_down(p, Alignment) == p); in test() 25 void* p = &b[Alignment - 1]; in test() 27 BOOST_TEST(boost::alignment::align_down(p, Alignment) == q); in test()
|
D | align_up_test.cpp | 12 template<std::size_t Alignment> 15 char s[Alignment << 1]; in test() 17 while (!boost::alignment::is_aligned(b, Alignment)) { in test() 22 BOOST_TEST(boost::alignment::align_up(p, Alignment) == p); in test() 25 void* p = &b[Alignment]; in test() 27 BOOST_TEST(boost::alignment::align_up(q, Alignment) == p); in test()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineFrameInfo.cpp | 31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { in ensureMaxAlignment() argument 33 assert(Alignment <= StackAlignment && in ensureMaxAlignment() 35 if (MaxAlignment < Alignment) in ensureMaxAlignment() 36 MaxAlignment = Alignment; in ensureMaxAlignment() 40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment, in clampStackAlignment() argument 42 if (!ShouldClamp || Alignment <= StackAlignment) in clampStackAlignment() 43 return Alignment; in clampStackAlignment() 44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << Alignment.value() in clampStackAlignment() 50 int MachineFrameInfo::CreateStackObject(uint64_t Size, Align Alignment, in CreateStackObject() argument 55 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject() [all …]
|
D | SafeStackLayout.cpp | 41 void StackLayout::addObject(const Value *V, unsigned Size, unsigned Alignment, in addObject() argument 43 StackObjects.push_back({V, Size, Alignment, Range}); in addObject() 44 ObjectAlignments[V] = Alignment; in addObject() 45 MaxAlignment = std::max(MaxAlignment, Alignment); in addObject() 49 unsigned Alignment) { in AdjustStackOffset() argument 50 return alignTo(Offset + Size, Alignment) - Size; in AdjustStackOffset() 58 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject() 66 << Obj.Alignment << ", range " << Obj.Range << "\n"); in layoutObject() 67 assert(Obj.Alignment <= MaxAlignment); in layoutObject() 68 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject() [all …]
|
/third_party/boost/boost/interprocess/mem_algo/detail/ |
D | mem_algo_common.hpp | 92 static const size_type Alignment = MemoryAlgorithm::Alignment; member in boost::interprocess::ipcdetail::memory_algorithm_common 106 BOOST_ASSERT(uint_ptr % Alignment == 0); in assert_alignment() 110 { return (((std::size_t)ptr) % Alignment == 0); } in check_alignment() 113 { return get_rounded_size(size, Alignment)/Alignment; } in ceil_units() 116 { return size/Alignment; } in floor_units() 119 { return get_rounded_size(size, Alignment); } in multiple_of_units() 138 size_type min = Alignment; in calculate_lcm_and_needs_backwards_lcmed() 168 else if((backwards_multiple & (Alignment - 1u)) == 0){ in calculate_lcm_and_needs_backwards_lcmed() 173 BOOST_ASSERT((needs_backwards_lcmed & (Alignment - 1u)) == 0); in calculate_lcm_and_needs_backwards_lcmed() 179 else if((backwards_multiple & ((Alignment/2u) - 1u)) == 0){ in calculate_lcm_and_needs_backwards_lcmed() [all …]
|
D | simple_seq_fit_impl.hpp | 101 { return this->m_size*Alignment - BlockCtrlBytes; } in get_user_bytes() 104 { return this->m_size*Alignment; } in get_total_bytes() 273 static const size_type Alignment = ::boost::container::dtl::alignment_of member in boost::interprocess::ipcdetail::simple_seq_fit_impl 276 …static const size_type BlockCtrlBytes = ipcdetail::ct_rounded_size<sizeof(block_ctrl), Alignment>:… 277 static const size_type BlockCtrlUnits = BlockCtrlBytes/Alignment; 279 static const size_type MinBlockSize = MinBlockUnits*Alignment; 295 size_type uint_aligned_this = uint_this/Alignment*Alignment; in priv_first_block_offset() 298 …ail::get_rounded_size(sizeof(simple_seq_fit_impl) + extra_hdr_bytes + this_disalignment, Alignment) in priv_first_block_offset() 311 size_type uint_aligned_this = uint_this/Alignment*Alignment; in priv_block_end_offset() 314 ipcdetail::get_truncated_size(m_header.m_size + this_disalignment, Alignment) in priv_block_end_offset() [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/painting/ |
D | alignment.dart | 11 /// Base class for [Alignment] that allows for text-direction aware 15 /// Alignment] and its variants, or [new AlignmentDirectional]. 18 /// [Alignment] object, call the [resolve] method. 33 /// If you know you are adding two [Alignment] or two [AlignmentDirectional] 37 /// If [add] is applied to two objects of the same type ([Alignment] or 41 /// into a concrete [Alignment] using [resolve]. 79 /// If either is null, this function interpolates from [Alignment.center], and 82 /// If [lerp] is applied to two objects of the same type ([Alignment] or 86 /// into a concrete [Alignment] using [resolve]. 97 if (a is Alignment && b is Alignment) [all …]
|
/third_party/boost/libs/interprocess/example/ |
D | doc_managed_aligned_allocation.cpp | 53 const std::size_t Alignment = 128; in main() local 56 void *ptr = managed_shm.allocate_aligned(100, Alignment); in main() 59 assert((static_cast<char*>(ptr)-static_cast<char*>(0)) % Alignment == 0); in main() 65 ptr = managed_shm.allocate_aligned(100, Alignment, std::nothrow); in main() 68 assert((static_cast<char*>(ptr)-static_cast<char*>(0)) % Alignment == 0); in main() 75 assert(Alignment > managed_shared_memory::PayloadPerAllocation); in main() 80 (3*Alignment - managed_shared_memory::PayloadPerAllocation, Alignment); in main() 83 assert((static_cast<char*>(ptr)-static_cast<char*>(0)) % Alignment == 0); in main()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | ASanStackFrameLayout.cpp | 31 return a.Alignment > b.Alignment; in CompareVars() 42 size_t Alignment) { in VarAndRedzoneSize() argument 50 return alignTo(std::max(Res, 2 * Granularity), Alignment); in VarAndRedzoneSize() 63 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout() 69 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout() 71 Vars[0].Alignment); in ComputeASanStackFrameLayout() 75 size_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local 76 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout() 78 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout() 79 assert(Layout.FrameAlignment >= Alignment); in ComputeASanStackFrameLayout() [all …]
|
/third_party/boost/boost/align/ |
D | aligned_allocator.hpp | 29 template<class T, std::size_t Alignment> 31 BOOST_STATIC_ASSERT(detail::is_alignment_constant<Alignment>::value); 49 typedef aligned_allocator<U, Alignment> other; 59 aligned_allocator(const aligned_allocator<U, Alignment>&) in aligned_allocator() argument 64 m = detail::max_size<Alignment, in allocate() 121 template<class T, class U, std::size_t Alignment> 123 operator==(const aligned_allocator<T, Alignment>&, in operator ==() argument 124 const aligned_allocator<U, Alignment>&) BOOST_NOEXCEPT in operator ==() 129 template<class T, class U, std::size_t Alignment> 131 operator!=(const aligned_allocator<T, Alignment>&, in operator !=() argument [all …]
|
D | aligned_allocator_adaptor.hpp | 32 template<class Allocator, std::size_t Alignment> 35 BOOST_STATIC_ASSERT(detail::is_alignment_constant<Alignment>::value); 60 value = detail::max_size<Alignment, 70 rebind_alloc<U>, Alignment> other; 73 rebind<U>::other, Alignment> other; 92 Alignment>& other) BOOST_NOEXCEPT in aligned_allocator_adaptor() 151 template<class A, class B, std::size_t Alignment> 153 operator==(const aligned_allocator_adaptor<A, Alignment>& a, in operator ==() 154 const aligned_allocator_adaptor<B, Alignment>& b) BOOST_NOEXCEPT in operator ==() 159 template<class A, class B, std::size_t Alignment> [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/ |
D | SectionMemoryManager.cpp | 22 unsigned Alignment, in allocateDataSection() argument 28 Size, Alignment); in allocateDataSection() 30 Alignment); in allocateDataSection() 34 unsigned Alignment, in allocateCodeSection() argument 38 Alignment); in allocateCodeSection() 43 unsigned Alignment) { in allocateSection() argument 44 if (!Alignment) in allocateSection() 45 Alignment = 16; in allocateSection() 47 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection() 49 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1) / Alignment + 1); in allocateSection() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | MachineConstantPool.h | 48 unsigned Alignment) = 0; 76 unsigned Alignment; variable 79 : Alignment(A) { in MachineConstantPoolEntry() 84 : Alignment(A) { in MachineConstantPoolEntry() 86 Alignment |= 1U << (sizeof(unsigned) * CHAR_BIT - 1); in MachineConstantPoolEntry() 93 return (int)Alignment < 0; in isMachineConstantPoolEntry() 97 return Alignment & ~(1 << (sizeof(unsigned) * CHAR_BIT - 1)); in getAlignment() 142 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment); 144 unsigned Alignment);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | Loads.cpp | 39 static bool isAligned(const Value *Base, const APInt &Offset, Align Alignment, in isAligned() argument 43 const APInt APAlign(Offset.getBitWidth(), Alignment.value()); in isAligned() 53 const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument 65 return isDereferenceableAndAlignedPointer(BC->getOperand(0), Alignment, in isDereferenceableAndAlignedPointer() 79 return isAligned(V, Offset, Alignment, DL); in isDereferenceableAndAlignedPointer() 88 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer() 101 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer() 108 RelocateInst->getDerivedPtr(), Alignment, Size, DL, CtxI, DT, Visited); in isDereferenceableAndAlignedPointer() 111 return isDereferenceableAndAlignedPointer(ASC->getOperand(0), Alignment, in isDereferenceableAndAlignedPointer() 116 return isDereferenceableAndAlignedPointer(RP, Alignment, Size, DL, CtxI, in isDereferenceableAndAlignedPointer() [all …]
|
/third_party/boost/boost/interprocess/mem_algo/ |
D | rbtree_best_fit.hpp | 333 static const size_type Alignment = !MemAlignment member in boost::interprocess::rbtree_best_fit 341 BOOST_STATIC_ASSERT((Alignment >= 4)); 343 BOOST_STATIC_ASSERT((Alignment >= ::boost::container::dtl::alignment_of<void_pointer>::value)); 344 static const size_type AlignmentMask = (Alignment - 1); 345 …static const size_type BlockCtrlBytes = ipcdetail::ct_rounded_size<sizeof(block_ctrl), Alignment>:… 346 static const size_type BlockCtrlUnits = BlockCtrlBytes/Alignment; 347 …t size_type AllocatedCtrlBytes = ipcdetail::ct_rounded_size<sizeof(SizeHolder), Alignment>::value; 348 static const size_type AllocatedCtrlUnits = AllocatedCtrlBytes/Alignment; 349 …t size_type EndCtrlBlockBytes = ipcdetail::ct_rounded_size<sizeof(SizeHolder), Alignment>::value; 350 static const size_type EndCtrlBlockUnits = EndCtrlBlockBytes/Alignment; [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.h | 136 int getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment, 138 int getMaskedMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, 141 bool VariableMask, unsigned Alignment); 162 unsigned Alignment, unsigned AddressSpace, 167 unsigned Alignment, unsigned AddressSpace, 172 unsigned Alignment, unsigned AddressSpace, 188 bool isLegalMaskedLoad(Type *DataType, MaybeAlign Alignment); 189 bool isLegalMaskedStore(Type *DataType, MaybeAlign Alignment); 190 bool isLegalNTLoad(Type *DataType, Align Alignment); 191 bool isLegalNTStore(Type *DataType, Align Alignment); [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonTargetTransformInfo.cpp | 155 MaybeAlign Alignment, in getMemoryOpCost() argument 160 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, I); in getMemoryOpCost() 173 if (!Alignment || *Alignment > RegAlign) in getMemoryOpCost() 174 Alignment = RegAlign; in getMemoryOpCost() 175 assert(Alignment); in getMemoryOpCost() 176 unsigned AlignWidth = 8 * Alignment->value(); in getMemoryOpCost() 187 const Align BoundAlignment = std::min(Alignment.valueOrOne(), Align(8)); in getMemoryOpCost() 190 if (Alignment == Align(4) || Alignment == Align(8)) in getMemoryOpCost() 198 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, I); in getMemoryOpCost() 202 Type *Src, unsigned Alignment, unsigned AddressSpace) { in getMaskedMemoryOpCost() argument [all …]
|
/third_party/boost/boost/atomic/detail/ |
D | lock_pool.hpp | 71 template< std::size_t Alignment > 75 atomics::detail::uintptr_t h = ptr / Alignment; in hash_ptr() 82 BOOST_IF_CONSTEXPR (Alignment != malloc_alignment) in hash_ptr() 88 template< std::size_t Alignment, bool LongLock = false > 97 atomics::detail::uintptr_t h = lock_pool::hash_ptr< Alignment >(addr); in scoped_lock() 117 template< std::size_t Alignment > 119 public scoped_lock< Alignment, true > 126 scoped_lock< Alignment, true >(addr) in scoped_wait_state()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | VectorUtils.h | 66 Align Alignment = Align(); // Optional aligment in bytes, defaulted to 1. member 70 return std::tie(ParamPos, ParamKind, LinearStepOrPos, Alignment) == 72 Other.Alignment); 419 InterleaveGroup(uint32_t Factor, bool Reverse, Align Alignment) in InterleaveGroup() argument 420 : Factor(Factor), Reverse(Reverse), Alignment(Alignment), in InterleaveGroup() 423 InterleaveGroup(InstTy *Instr, int32_t Stride, Align Alignment) in InterleaveGroup() argument 424 : Alignment(Alignment), InsertPos(Instr) { in InterleaveGroup() 434 uint32_t getAlignment() const { return Alignment.value(); } in getAlignment() 474 Alignment = std::min(Alignment, NewAlign); in insertMember() 533 Align Alignment; variable [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/JITLink/ |
D | JITLinkMemoryManager.h | 36 SegmentRequest(uint64_t Alignment, size_t ContentSize, in SegmentRequest() argument 38 : Alignment(Alignment), ContentSize(ContentSize), in SegmentRequest() 40 assert(isPowerOf2_32(Alignment) && "Alignment must be power of 2"); in SegmentRequest() 42 uint64_t getAlignment() const { return Alignment; } in getAlignment() 46 uint64_t Alignment = 0;
|