Home
last modified time | relevance | path

Searched refs:Dst (Results 1 – 25 of 268) sorted by relevance

1234567891011

/third_party/flutter/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dsafe_numerics_unittest.cc46 template <typename Dst, typename Src>
47 Dst GetMaxConvertibleToFloat() in GetMaxConvertibleToFloat()
49 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat()
56 MaxExponent<Src>::value <= MaxExponent<Dst>::value) in GetMaxConvertibleToFloat()
59 while (max != static_cast<Src>(static_cast<Dst>(max))) in GetMaxConvertibleToFloat()
63 return static_cast<Dst>(max); in GetMaxConvertibleToFloat()
68 EXPECT_EQ(expected, CheckedNumeric<Dst>(actual).IsValid()) \
76 EXPECT_EQ(static_cast<Dst>(expected), CheckedNumeric<Dst>(actual).ValueUnsafe()) \
81 template <typename Dst>
85 typename std::enable_if<numeric_limits<Dst>::is_integer && numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic()
[all …]
Dsafe_conversions_impl.h55 template <typename Dst,
57 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed
67 template <typename Dst, typename Src, IntegerRepresentation Sign>
68 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign>
71 MaxExponent<Dst>::value >= MaxExponent<Src>::value ? NUMERIC_RANGE_CONTAINED
77 template <typename Dst, typename Src>
78 struct StaticDstRangeRelationToSrcRange<Dst,
84 MaxExponent<Dst>::value > MaxExponent<Src>::value ? NUMERIC_RANGE_CONTAINED
89 template <typename Dst, typename Src>
90 struct StaticDstRangeRelationToSrcRange<Dst,
[all …]
Dsafe_conversions.h24 template <typename Dst, typename Src>
27 return internal::DstRangeRelationToSrcRange<Dst>(value) == internal::RANGE_VALID; in IsValueInRangeForNumericType()
50 template <typename Dst, typename Src>
51 inline Dst checked_cast(Src value) in checked_cast()
53 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
54 return static_cast<Dst>(value); in checked_cast()
82 template <typename Dst, class NaNHandler, typename Src>
83 constexpr Dst saturated_cast_impl(const Src value, const RangeConstraint constraint) in saturated_cast_impl()
86 ? static_cast<Dst>(value) in saturated_cast_impl()
88 ? std::numeric_limits<Dst>::min() in saturated_cast_impl()
[all …]
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dsafe_conversions.h35 template <typename Dst, typename Src>
39 static constexpr Dst Do(Src) in Do()
42 return CheckOnFailure::template HandleFailure<Dst>(); in Do()
50 template <typename Dst, typename Src, typename Enable = void>
62 template <typename Dst, typename Src>
64 Dst,
66 typename std::enable_if<std::is_integral<Dst>::value && std::is_integral<Src>::value &&
67 std::is_signed<Dst>::value && std::is_signed<Src>::value &&
68 !IsTypeInRangeForNumericType<Dst, Src>::value>::type>
76 return value == static_cast<Dst>(value);
[all …]
Dsafe_conversions_arm_impl.h22 template <typename Dst, typename Src>
26 std::is_signed<Src>::value && std::is_integral<Dst>::value &&
29 IntegerBitsPlusSign<Dst>::value <= IntegerBitsPlusSign<int32_t>::value &&
30 !IsTypeInRangeForNumericType<Dst, Src>::value;
32 __attribute__((always_inline)) static Dst Do(Src value) in Do()
35 typename std::conditional<std::is_signed<Dst>::value, int32_t, uint32_t>::type result; in Do()
36 if (std::is_signed<Dst>::value) in Do()
40 : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign<Dst>::value <= 32 in Do()
41 ? IntegerBitsPlusSign<Dst>::value in Do()
48 : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign<Dst>::value < 32 in Do()
[all …]
Dsafe_conversions_impl.h163 typename Dst,
165 IntegerRepresentation DstSign = std::is_signed<Dst>::value ? INTEGER_REPRESENTATION_SIGNED
173 template <typename Dst, typename Src, IntegerRepresentation Sign>
174 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign>
177 MaxExponent<Dst>::value >= MaxExponent<Src>::value ? NUMERIC_RANGE_CONTAINED
183 template <typename Dst, typename Src>
184 struct StaticDstRangeRelationToSrcRange<Dst,
190 MaxExponent<Dst>::value > MaxExponent<Src>::value ? NUMERIC_RANGE_CONTAINED
195 template <typename Dst, typename Src>
196 struct StaticDstRangeRelationToSrcRange<Dst,
[all …]
Dchecked_math.h60 template <typename Dst = T>
63 return state_.is_valid() && IsValueInRangeForNumericType<Dst>(state_.value()); in IsValid()
69 template <typename Dst>
76 AssignIfValid(Dst *result) const in AssignIfValid()
78 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) in AssignIfValid()
79 ? ((*result = static_cast<Dst>(state_.value())), true) in AssignIfValid()
91 template <typename Dst = T, class CheckHandler = CheckOnFailure>
92 constexpr StrictNumeric<Dst> ValueOrDie() const in ValueOrDie()
94 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) ? static_cast<Dst>(state_.value()) in ValueOrDie()
95 : CheckHandler::template HandleFailure<Dst>(); in ValueOrDie()
[all …]
/third_party/gn/src/base/numerics/
Dsafe_conversions.h22 template <typename Dst, typename Src>
25 static constexpr Dst Do(Src) { in Do()
27 return CheckOnFailure::template HandleFailure<Dst>(); in Do()
35 template <typename Dst, typename Src, typename Enable = void>
45 template <typename Dst, typename Src>
47 Dst,
50 std::is_integral<Dst>::value && std::is_integral<Src>::value &&
51 std::is_signed<Dst>::value && std::is_signed<Src>::value &&
52 !IsTypeInRangeForNumericType<Dst, Src>::value>::type> {
58 return value == static_cast<Dst>(value);
[all …]
Dsafe_conversions_impl.h147 template <typename Dst,
149 IntegerRepresentation DstSign = std::is_signed<Dst>::value
159 template <typename Dst, typename Src, IntegerRepresentation Sign>
160 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> {
162 MaxExponent<Dst>::value >= MaxExponent<Src>::value
169 template <typename Dst, typename Src>
170 struct StaticDstRangeRelationToSrcRange<Dst,
175 MaxExponent<Dst>::value > MaxExponent<Src>::value
181 template <typename Dst, typename Src>
182 struct StaticDstRangeRelationToSrcRange<Dst,
[all …]
Dchecked_math.h54 template <typename Dst = T>
57 IsValueInRangeForNumericType<Dst>(state_.value()); in IsValid()
63 template <typename Dst>
70 AssignIfValid(Dst* result) const { in AssignIfValid()
71 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) in AssignIfValid()
72 ? ((*result = static_cast<Dst>(state_.value())), true) in AssignIfValid()
84 template <typename Dst = T, class CheckHandler = CheckOnFailure>
85 constexpr StrictNumeric<Dst> ValueOrDie() const { in ValueOrDie()
86 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) in ValueOrDie()
87 ? static_cast<Dst>(state_.value()) in ValueOrDie()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8664/
DXmmArith.cpp17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument
22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ in TEST_F()
31 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T0)); \ in TEST_F()
33 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
46 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F()
50 #define TestArithSSXmmAddr(FloatSize, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument
55 "(" #FloatSize ", Addr, " #Value0 ", " #Dst ", " #Value1 ", " #Inst \ in TEST_F()
64 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T0)); \ in TEST_F()
65 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T1)); \ in TEST_F()
78 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F()
[all …]
DControlFlow.cpp39 #define TestImpl(Dst, Src0, Src1) \ in TEST_F() argument
41 TestJ(o, Near, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F()
42 TestJ(o, Far, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F()
43 TestJ(no, Near, Dst, Src0, 0x1ul, Src1, 0x1ul); \ in TEST_F()
44 TestJ(no, Far, Dst, Src0, 0x1ul, Src1, 0x1ul); \ in TEST_F()
45 TestJ(b, Near, Dst, Src0, 0x1ul, Src1, 0x80000000ul); \ in TEST_F()
46 TestJ(b, Far, Dst, Src0, 0x1ul, Src1, 0x80000000ul); \ in TEST_F()
47 TestJ(ae, Near, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F()
48 TestJ(ae, Far, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F()
49 TestJ(e, Near, Dst, Src0, 0x80000000ul, Src1, 0x80000000ul); \ in TEST_F()
[all …]
DDataMov.cpp156 #define TestRegReg(Dst, Src, Suffix, Size) \ in TEST_F() argument
159 "(" #Dst ", " #Src ", " #Suffix ", " #Size ")"; \ in TEST_F()
166 __ mov(IceType_i64, Encoded_GPR_##Dst(), dwordAddress(T1)); \ in TEST_F()
167 __ mov(IceType_i##Size, Encoded_GPR_##Dst(), Encoded_GPR_##Src()); \ in TEST_F()
174 ASSERT_EQ((Marker & ~MaskResult##Size) | Value, test.Dst()) << TestString; \ in TEST_F()
175 ASSERT_EQ(Value, test.Dst##Suffix()) << TestString; \ in TEST_F()
179 #define TestImpl(Dst, Src) \ in TEST_F() argument
181 TestRegReg(Dst, Src, l, 8); \ in TEST_F()
182 TestRegReg(Dst, Src, w, 16); \ in TEST_F()
183 TestRegReg(Dst, Src, d, 32); \ in TEST_F()
[all …]
DGPRArith.cpp112 #define TestLeaBaseDisp(Base, BaseValue, Disp, Dst) \ in TEST_F() argument
115 "(" #Base ", " #BaseValue ", " #Dst ")"; \ in TEST_F()
120 __ lea(IceType_i32, Encoded_GPR_##Dst(), \ in TEST_F()
124 ASSERT_EQ(test.Base##d() + (Disp), test.Dst##d()) \ in TEST_F()
327 #define TestLeaAbsolute(Dst, Value) \ in TEST_F() argument
329 static constexpr char TestString[] = "(" #Dst ", " #Value ")"; \ in TEST_F()
330 __ lea(IceType_i32, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F()
336 /*mod*/ 0x00 | /*reg*/ (GPRRegister::Encoded_Reg_##Dst << 3) | \ in TEST_F()
362 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
366 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8632/
DXmmArith.cpp17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument
22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ in TEST_F()
31 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F()
35 __ Inst(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F()
49 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F()
53 #define TestArithSSXmmAddr(FloatSize, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument
58 "(" #FloatSize ", Addr, " #Value0 ", " #Dst ", " #Value1 ", " #Inst \ in TEST_F()
67 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F()
69 __ Inst(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F()
83 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F()
[all …]
DDataMov.cpp177 #define TestMovzx8bitWithRegDest(Src, Dst, Imm) \ in TEST_F() argument
181 __ movzx(IceType_i8, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F()
185 ASSERT_EQ(Imm, test.Dst()) << "(" #Src ", " #Dst ", " #Imm ")"; \ in TEST_F()
189 #define TestMovzx16bitWithRegDest(Src, Dst, Imm) \ in TEST_F() argument
193 __ movzx(IceType_i16, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F()
197 ASSERT_EQ(Imm, test.Dst()) << "(" #Src ", " #Dst ", " #Imm ")"; \ in TEST_F()
201 #define TestMovzx8bitWithAddrSrc(Dst, Imm) \ in TEST_F() argument
206 __ movzx(IceType_i8, GPRRegister::Encoded_Reg_##Dst, dwordAddress(T0)); \ in TEST_F()
210 ASSERT_EQ(Imm, test.Dst()) << "(Addr, " #Dst ", " #Imm ")"; \ in TEST_F()
214 #define TestMovzx16bitWithAddrSrc(Dst, Imm) \ in TEST_F() argument
[all …]
DGPRArith.cpp124 #define TestLeaBaseDisp(Base, BaseValue, Disp, Dst) \ in TEST_F() argument
127 "(" #Base ", " #BaseValue ", " #Dst ")"; \ in TEST_F()
133 __ lea(IceType_i32, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F()
138 ASSERT_EQ(test.Base() + (Disp), test.Dst()) \ in TEST_F()
294 #define TestLeaAbsolute(Dst, Value) \ in TEST_F() argument
296 static constexpr char TestString[] = "(" #Dst ", " #Value ")"; \ in TEST_F()
297 __ lea(IceType_i32, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F()
303 /*mod=*/0x00 | /*reg*/ (GPRRegister::Encoded_Reg_##Dst << 3) | \ in TEST_F()
326 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
330 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
[all …]
/third_party/boost/libs/multi_index/test/
Dtest_node_handling.cpp161 template<typename Dst,typename Ret,typename NodeHandle,typename Value>
163 Dst&,Ret res,const NodeHandle& n,const Value& x, in test_transfer_result() argument
176 template<typename Dst,typename NodeHandle,typename Value>
178 Dst&,typename Dst::iterator res,const NodeHandle& n,const Value& x) in test_transfer_result() argument
184 template<typename Dst,typename Ret>
186 Dst& dst,Ret res, in test_transfer_result_empty()
194 template<typename Dst>
195 void test_transfer_result_empty(Dst& dst,typename Dst::iterator res) in test_transfer_result_empty()
200 template<typename Dst,typename Ret,typename NodeHandle,typename Value>
202 Dst& dst,typename Dst::iterator pos,Ret res, in test_transfer_result()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DMachineIRBuilder.h226 void validateTruncExt(const LLT &Dst, const LLT &Src, bool IsExtend);
529 MachineInstrBuilder buildPtrToInt(const DstOp &Dst, const SrcOp &Src) { in buildPtrToInt() argument
530 return buildInstr(TargetOpcode::G_PTRTOINT, {Dst}, {Src}); in buildPtrToInt()
534 MachineInstrBuilder buildIntToPtr(const DstOp &Dst, const SrcOp &Src) { in buildIntToPtr() argument
535 return buildInstr(TargetOpcode::G_INTTOPTR, {Dst}, {Src}); in buildIntToPtr()
539 MachineInstrBuilder buildBitcast(const DstOp &Dst, const SrcOp &Src) { in buildBitcast() argument
540 return buildInstr(TargetOpcode::G_BITCAST, {Dst}, {Src}); in buildBitcast()
544 MachineInstrBuilder buildAddrSpaceCast(const DstOp &Dst, const SrcOp &Src) { in buildAddrSpaceCast() argument
545 return buildInstr(TargetOpcode::G_ADDRSPACE_CAST, {Dst}, {Src}); in buildAddrSpaceCast()
614 MachineInstrBuilder buildCast(const DstOp &Dst, const SrcOp &Src);
[all …]
/third_party/boost/libs/gil/test/core/color/
Ddefault_color_converter_impl.cpp37 template<typename Src, typename Dst>
38 void operator()(mp11::mp_list<Src, Dst> const&) const in operator ()()
42 << "\tsrc: " << name<Src>() << "\n\tdst: " << name<Dst>() << std::endl; in operator ()()
45 using pixel_dst_t = gil::pixel<std::uint8_t, gil::layout<Dst>>; in operator ()()
50 gil::default_color_converter_impl<Src, Dst> convert_to; in operator ()()
53 gil::default_color_converter_impl<Dst, Src> convert_from; in operator ()()
71 template<typename Src, typename Dst>
72 void operator()(mp11::mp_list<Src, Dst> const&) const in operator ()()
76 << "\tsrc: " << name<Src>() << "\n\tdst: " << name<Dst>() << std::endl; in operator ()()
79 using pixel_dst_t = gil::pixel<std::uint8_t, gil::layout<Dst>>; in operator ()()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineBranchProbabilityInfo.cpp52 MachineBasicBlock::const_succ_iterator Dst) const { in getEdgeProbability()
53 return Src->getSuccProbability(Dst); in getEdgeProbability()
57 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability()
60 return getEdgeProbability(Src, find(Src->successors(), Dst)); in getEdgeProbability()
64 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in isEdgeHot()
66 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot()
91 const MachineBasicBlock *Dst) const { in printEdgeProbability()
93 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
94 OS << "edge " << printMBBReference(*Src) << " -> " << printMBBReference(*Dst) in printEdgeProbability()
96 << (isEdgeHot(Src, Dst) ? " [HOT edge]\n" : "\n"); in printEdgeProbability()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonSubtarget.cpp319 void HexagonSubtarget::adjustSchedDependency(SUnit *Src, SUnit *Dst, in adjustSchedDependency() argument
322 MachineInstr *DstInst = Dst->getInstr(); in adjustSchedDependency()
323 if (!Src->isInstr() || !Dst->isInstr()) in adjustSchedDependency()
332 isBestZeroLatency(Src, Dst, QII, ExclSrc, ExclDst)) { in adjustSchedDependency()
346 if ((DstInst->isRegSequence() || DstInst->isCopy()) && Dst->NumSuccs == 1) { in adjustSchedDependency()
348 MachineInstr *DDst = Dst->Succs[0].getSUnit()->getInstr(); in adjustSchedDependency()
367 isBestZeroLatency(Src, Dst, QII, ExclSrc, ExclDst)) { in adjustSchedDependency()
418 void HexagonSubtarget::restoreLatency(SUnit *Src, SUnit *Dst) const { in restoreLatency()
421 if (!I.isAssignedRegDep() || I.getSUnit() != Dst) in restoreLatency()
431 MachineInstr *DstI = Dst->getInstr(); in restoreLatency()
[all …]
/third_party/boost/boost/gil/
Dcolor_base_algorithm.hpp268 template <typename Dst,typename Op>
269 static void static_generate(Dst& dst, Op op) in static_generate()
367 template <typename P1,typename Dst,typename Op>
368 static Op static_transform(P1& src, Dst& dst, Op op) { in static_transform()
373 template <typename P1,typename Dst,typename Op>
374 static Op static_transform(const P1& src, Dst& dst, Op op) { in static_transform()
380 template <typename P1,typename P2,typename Dst,typename Op>
381 static Op static_transform(P1& src1, P2& src2, Dst& dst, Op op) { in static_transform()
386 template <typename P1,typename P2,typename Dst,typename Op>
387 static Op static_transform(P1& src1, const P2& src2, Dst& dst, Op op) { in static_transform()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDependenceGraphBuilder.cpp162 auto createEdgeOfKind = [this](NodeType &Src, NodeType &Dst, in createPiBlocks()
166 createDefUseEdge(Src, Dst); in createPiBlocks()
169 createMemoryEdge(Src, Dst); in createPiBlocks()
172 createRootedEdge(Src, Dst); in createPiBlocks()
179 auto reconnectEdges = [&](NodeType *Src, NodeType *Dst, NodeType *New, in createPiBlocks()
181 if (!Src->hasEdgeTo(*Dst)) in createPiBlocks()
186 << ":\nSrc:" << *Src << "\nDst:" << *Dst in createPiBlocks()
192 Src->findEdgesTo(*Dst, EL); in createPiBlocks()
200 createEdgeOfKind(*New, *Dst, Kind); in createPiBlocks()
309 auto createConfusedEdges = [&](NodeType &Src, NodeType &Dst) { in createMemoryDependencyEdges() argument
[all …]
/third_party/skia/third_party/externals/tint/test/bug/tint/
D413.spvasm13 OpName %Dst "Dst"
17 OpDecorate %Dst DescriptorSet 0
18 OpDecorate %Dst Binding 1
19 OpDecorate %Dst NonReadable
35 %Dst = OpVariable %_ptr_UniformConstant_10 UniformConstant
46 %26 = OpLoad %10 %Dst

1234567891011