/external/libchrome/base/numerics/ |
D | safe_numerics_unittest.cc | 59 template <typename Dst, typename Src> 60 Dst GetMaxConvertibleToFloat() { in GetMaxConvertibleToFloat() 61 using DstLimits = numeric_limits<Dst>; in GetMaxConvertibleToFloat() 68 MaxExponent<Src>::value <= MaxExponent<Dst>::value) in GetMaxConvertibleToFloat() 71 while (max != static_cast<Src>(static_cast<Dst>(max))) { in GetMaxConvertibleToFloat() 74 return static_cast<Dst>(max); in GetMaxConvertibleToFloat() 150 EXPECT_EQ(expected, (actual).template Cast<Dst>().IsValid()) \ 169 template <typename Dst> 171 Dst dummy_value = 0; in TestStrictPointerMath() 172 Dst* dummy_ptr = &dummy_value; in TestStrictPointerMath() [all …]
|
D | safe_conversions.h | 52 template <typename Dst, typename Src> 54 return internal::DstRangeRelationToSrcRange<Dst>(value).IsValid(); in IsValueInRangeForNumericType() 73 template <typename Dst, 76 constexpr Dst checked_cast(Src value) { in checked_cast() 80 return IsValueInRangeForNumericType<Dst, SrcType>(value) in checked_cast() 81 ? static_cast<Dst>(static_cast<SrcType>(value)) in checked_cast() 82 : CheckHandler::template HandleFailure<Dst>(); in checked_cast() 109 template <typename Dst, template <typename> class S, typename Src> 110 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) { in saturated_cast_impl() 114 ? (!constraint.IsUnderflowFlagSet() ? static_cast<Dst>(value) in saturated_cast_impl() [all …]
|
D | safe_conversions_impl.h | 97 template <typename Dst, 99 IntegerRepresentation DstSign = std::is_signed<Dst>::value 109 template <typename Dst, typename Src, IntegerRepresentation Sign> 110 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 112 MaxExponent<Dst>::value >= MaxExponent<Src>::value 119 template <typename Dst, typename Src> 120 struct StaticDstRangeRelationToSrcRange<Dst, 125 MaxExponent<Dst>::value > MaxExponent<Src>::value 131 template <typename Dst, typename Src> 132 struct StaticDstRangeRelationToSrcRange<Dst, [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8664/ |
D | XmmArith.cpp | 17 #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 …]
|
D | ControlFlow.cpp | 39 #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 …]
|
D | DataMov.cpp | 156 #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 …]
|
D | GPRArith.cpp | 112 #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 …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
D | XmmArith.cpp | 17 #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 …]
|
D | DataMov.cpp | 177 #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 …]
|
D | GPRArith.cpp | 124 #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()) << TestString << " with Disp " \ 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 …]
|
/external/v8/src/base/ |
D | safe_conversions_impl.h | 50 typename Dst, 52 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed 63 template <typename Dst, typename Src, IntegerRepresentation Sign> 64 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 66 MaxExponent<Dst>::value >= MaxExponent<Src>::value 73 template <typename Dst, typename Src> 74 struct StaticDstRangeRelationToSrcRange<Dst, 79 MaxExponent<Dst>::value > MaxExponent<Src>::value 85 template <typename Dst, typename Src> 86 struct StaticDstRangeRelationToSrcRange<Dst, [all …]
|
D | safe_conversions.h | 20 template <typename Dst, typename Src> 22 return internal::DstRangeRelationToSrcRange<Dst>(value) == in IsValueInRangeForNumericType() 29 template <typename Dst, typename Src> 30 inline Dst checked_cast(Src value) { in checked_cast() 31 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast() 32 return static_cast<Dst>(value); in checked_cast() 38 template <typename Dst, typename Src> 39 inline Dst saturated_cast(Src value) { in saturated_cast() 41 if (std::numeric_limits<Dst>::is_iec559) in saturated_cast() 42 return static_cast<Dst>(value); in saturated_cast() [all …]
|
/external/webrtc/webrtc/base/ |
D | safe_conversions_impl.h | 39 template <typename Dst, typename Src, 40 DstSign IsDstSigned = std::numeric_limits<Dst>::is_signed ? 46 template <typename Dst, typename Src> 47 struct StaticRangeCheck<Dst, Src, DST_SIGNED, SRC_SIGNED> { 48 typedef std::numeric_limits<Dst> DstLimits; 53 (sizeof(Dst) * 8 - 1); 61 template <typename Dst, typename Src> 62 struct StaticRangeCheck<Dst, Src, DST_UNSIGNED, SRC_UNSIGNED> { 63 static const DstRange value = sizeof(Dst) >= sizeof(Src) ? 67 template <typename Dst, typename Src> [all …]
|
D | safe_conversions.h | 25 template <typename Dst, typename Src> 27 return internal::RangeCheck<Dst>(value) == internal::TYPE_VALID; in IsValueInRangeForNumericType() 33 template <typename Dst, typename Src> 34 inline Dst checked_cast(Src value) { in checked_cast() 35 RTC_CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast() 36 return static_cast<Dst>(value); in checked_cast() 42 template <typename Dst, typename Src> 43 inline Dst saturated_cast(Src value) { in saturated_cast() 45 if (std::numeric_limits<Dst>::is_iec559) in saturated_cast() 46 return static_cast<Dst>(value); in saturated_cast() [all …]
|
/external/pdfium/third_party/base/numerics/ |
D | safe_conversions.h | 53 template <typename Dst, typename Src> 55 return internal::DstRangeRelationToSrcRange<Dst>(value).IsValid(); in IsValueInRangeForNumericType() 74 template <typename Dst, class CheckHandler = CheckOnFailure, typename Src> 75 constexpr Dst checked_cast(Src value) { in checked_cast() 79 return IsValueInRangeForNumericType<Dst, SrcType>(value) in checked_cast() 80 ? static_cast<Dst>(static_cast<SrcType>(value)) in checked_cast() 81 : CheckHandler::template HandleFailure<Dst>(); in checked_cast() 108 template <typename Dst, template <typename> class S, typename Src> 109 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) { in saturated_cast_impl() 113 ? (!constraint.IsUnderflowFlagSet() ? static_cast<Dst>(value) in saturated_cast_impl() [all …]
|
D | safe_conversions_impl.h | 98 template <typename Dst, 100 IntegerRepresentation DstSign = std::is_signed<Dst>::value 110 template <typename Dst, typename Src, IntegerRepresentation Sign> 111 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 113 MaxExponent<Dst>::value >= MaxExponent<Src>::value 120 template <typename Dst, typename Src> 121 struct StaticDstRangeRelationToSrcRange<Dst, 126 MaxExponent<Dst>::value > MaxExponent<Src>::value 132 template <typename Dst, typename Src> 133 struct StaticDstRangeRelationToSrcRange<Dst, [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExprEngine.h | 118 ExplodedNodeSet &Dst) { in ExecuteWorkListWithInitialState() argument 119 return Engine.ExecuteWorkListWithInitialState(L, Steps, InitState, Dst); in ExecuteWorkListWithInitialState() 206 ExplodedNode *Pred, ExplodedNodeSet &Dst); 208 ExplodedNode *Pred, ExplodedNodeSet &Dst); 210 ExplodedNode *Pred, ExplodedNodeSet &Dst); 212 ExplodedNode *Pred, ExplodedNodeSet &Dst); 214 ExplodedNode *Pred, ExplodedNodeSet &Dst); 226 ExplodedNodeSet &Dst, 235 ExplodedNode *Pred, ExplodedNodeSet &Dst, 244 ExplodedNodeSet &Dst, [all …]
|
/external/llvm/tools/llvm-c-test/ |
D | echo.cpp | 157 static ValueMap clone_params(LLVMValueRef Src, LLVMValueRef Dst) { in clone_params() argument 159 if (Count != LLVMCountParams(Dst)) in clone_params() 167 LLVMValueRef DstFirst = LLVMGetFirstParam(Dst); in clone_params() 169 LLVMValueRef DstLast = LLVMGetLastParam(Dst); in clone_params() 239 LLVMValueRef Dst = LLVMGetNamedFunction(M, Name); in clone_constant_impl() local 240 if (Dst) in clone_constant_impl() 241 return Dst; in clone_constant_impl() 248 LLVMValueRef Dst = LLVMGetNamedGlobal(M, Name); in clone_constant_impl() local 249 if (Dst) in clone_constant_impl() 250 return Dst; in clone_constant_impl() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngine.cpp | 443 ExplodedNodeSet Dst; in ProcessStmt() local 449 Dst.insert(DstI); in ProcessStmt() 453 Engine.enqueue(Dst, currBldrCtx->getBlock(), currStmtIdx); in ProcessStmt() 533 ExplodedNodeSet Dst; in ProcessInitializer() local 534 NodeBuilder Bldr(Tmp, Dst, *currBldrCtx); in ProcessInitializer() 541 Engine.enqueue(Dst, currBldrCtx->getBlock(), currStmtIdx); in ProcessInitializer() 546 ExplodedNodeSet Dst; in ProcessImplicitDtor() local 549 ProcessAutomaticObjDtor(D.castAs<CFGAutomaticObjDtor>(), Pred, Dst); in ProcessImplicitDtor() 552 ProcessBaseDtor(D.castAs<CFGBaseDtor>(), Pred, Dst); in ProcessImplicitDtor() 555 ProcessMemberDtor(D.castAs<CFGMemberDtor>(), Pred, Dst); in ProcessImplicitDtor() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonPeephole.cpp | 105 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src); 140 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 142 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 158 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 163 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 175 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 180 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 189 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 191 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 207 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_optimize.c | 248 copy_dst_reg(&o->Dst[0].Register, &i->Dst[0].Register); in copy_instruction() 321 dst_reg = ¤t->FullInstruction.Dst[0]; in liveness_analysis() 416 same_src_dst_reg(&next->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_before_tex() 418 unused_from(ctx, ¤t->FullInstruction.Dst[0], index)) in i915_fpc_optimize_mov_before_tex() 444 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_mov() 446 !same_src_dst_reg(¤t->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) ) in i915_fpc_optimize_mov_after_mov() 449 dst_reg1 = ¤t->FullInstruction.Dst[0]; in i915_fpc_optimize_mov_after_mov() 451 dst_reg2 = &next->FullInstruction.Dst[0]; in i915_fpc_optimize_mov_after_mov() 496 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_alu() 498 !same_src_dst_reg(&next->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_alu() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineBranchProbabilityInfo.cpp | 45 MachineBasicBlock::const_succ_iterator Dst) const { in getEdgeProbability() 46 return Src->getSuccProbability(Dst); in getEdgeProbability() 50 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() 54 std::find(Src->succ_begin(), Src->succ_end(), Dst)); in getEdgeProbability() 58 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in isEdgeHot() 60 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot() 85 const MachineBasicBlock *Dst) const { in printEdgeProbability() 87 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() 88 OS << "edge MBB#" << Src->getNumber() << " -> MBB#" << Dst->getNumber() in printEdgeProbability() 90 << (isEdgeHot(Src, Dst) ? " [HOT edge]\n" : "\n"); in printEdgeProbability()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineBranchProbabilityInfo.cpp | 48 MachineBasicBlock *Dst) const { in getEdgeWeight() 49 uint32_t Weight = Src->getSuccWeight(Dst); in getEdgeWeight() 56 MachineBasicBlock *Dst) const { in isEdgeHot() 58 uint32_t Weight = getEdgeWeight(Src, Dst); in isEdgeHot() 96 MachineBasicBlock *Dst) const { in getEdgeProbability() 97 uint32_t N = getEdgeWeight(Src, Dst); in getEdgeProbability() 105 MachineBasicBlock *Dst) const { in printEdgeProbability() 107 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() 108 OS << "edge MBB#" << Src->getNumber() << " -> MBB#" << Dst->getNumber() in printEdgeProbability() 110 << (isEdgeHot(Src, Dst) ? " [HOT edge]\n" : "\n"); in printEdgeProbability()
|
/external/eigen/Eigen/src/Core/ |
D | AssignEvaluator.h | 30 typedef typename DstEvaluator::XprType Dst; typedef 31 typedef typename Dst::Scalar DstScalar; 48 InnerSize = int(Dst::IsVectorAtCompileTime) ? int(Dst::SizeAtCompileTime) 49 : int(DstFlags)&RowMajorBit ? int(Dst::ColsAtCompileTime) 50 : int(Dst::RowsAtCompileTime), 51 InnerMaxSize = int(Dst::IsVectorAtCompileTime) ? int(Dst::MaxSizeAtCompileTime) 52 : int(DstFlags)&RowMajorBit ? int(Dst::MaxColsAtCompileTime) 53 : int(Dst::MaxRowsAtCompileTime), 54 OuterStride = int(outer_stride_at_compile_time<Dst>::ret), 55 MaxSizeAtCompileTime = Dst::SizeAtCompileTime [all …]
|
D | Assign_MKL.h | 41 template<typename Dst, typename Src> 46 DstHasDirectAccess = Dst::Flags & DirectAccessBit, 48 StorageOrdersAgree = (int(Dst::IsRowMajor) == int(Src::IsRowMajor)), 49 InnerSize = int(Dst::IsVectorAtCompileTime) ? int(Dst::SizeAtCompileTime) 50 : int(Dst::Flags)&RowMajorBit ? int(Dst::ColsAtCompileTime) 51 : int(Dst::RowsAtCompileTime), 52 InnerMaxSize = int(Dst::IsVectorAtCompileTime) ? int(Dst::MaxSizeAtCompileTime) 53 : int(Dst::Flags)&RowMajorBit ? int(Dst::MaxColsAtCompileTime) 54 : int(Dst::MaxRowsAtCompileTime), 55 MaxSizeAtCompileTime = Dst::SizeAtCompileTime, [all …]
|