/external/clang/lib/Sema/ |
D | SemaCast.cpp | 168 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType, 174 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType, 182 QualType SrcType, 487 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument 502 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness() 503 SrcType->isBlockPointerType()) && in CastsAwayConstness() 509 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness() 623 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local 626 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast() 639 SrcPointee = SrcType; in CheckDynamicCast() [all …]
|
D | SemaExprObjC.cpp | 3807 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local 3811 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast() 3815 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast() 3819 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast() 3824 castType, SrcType, castExpr); in CheckObjCBridgeRelatedCast() 3845 QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument 3851 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents() 3868 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 3879 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 3894 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents() [all …]
|
D | Sema.cpp | 352 QualType SrcType, in diagnoseNullableToNonnullConversion() argument 354 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion() 362 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorConversion.h | 127 typedef typename internal::unpacket_traits<SrcPacket>::type SrcType; 129 internal::scalar_cast_op<SrcType, TgtType> converter; 189 typedef typename internal::remove_all<typename internal::traits<ArgType>::Scalar>::type SrcType; 191 typedef typename PacketType<SrcType, Device>::type PacketSourceType; 210 …return ConversionSubExprEval<internal::is_same<TargetType, SrcType>::value, TensorEvaluator<ArgTyp… 220 internal::scalar_cast_op<SrcType, TargetType> converter; 228 internal::type_casting_traits<SrcType, TargetType>::VectorizedCast; 234 const double cast_cost = TensorOpCost::CastCost<SrcType, TargetType>(); 237 internal::type_casting_traits<SrcType, TargetType>::SrcCoeffRatio; 239 internal::type_casting_traits<SrcType, TargetType>::TgtCoeffRatio; [all …]
|
D | TensorCostModel.h | 48 template <typename SrcType, typename TargetType> 51 internal::scalar_cast_op<SrcType, TargetType> >::Cost; in CastCost()
|
/external/libchrome/base/numerics/ |
D | safe_conversions.h | 79 using SrcType = typename internal::UnderlyingType<Src>::type; in checked_cast() local 80 return IsValueInRangeForNumericType<Dst, SrcType>(value) in checked_cast() 81 ? static_cast<Dst>(static_cast<SrcType>(value)) in checked_cast() 131 using SrcType = typename UnderlyingType<Src>::type; in saturated_cast() local 132 return saturated_cast_impl<Dst, SaturationHandler, SrcType>( in saturated_cast() 134 DstRangeRelationToSrcRange<Dst, SaturationHandler, SrcType>(value)); in saturated_cast() 142 using SrcType = typename UnderlyingType<Src>::type; in strict_cast() local 152 static_assert(StaticDstRangeRelationToSrcRange<Dst, SrcType>::value == in strict_cast() 157 return static_cast<Dst>(static_cast<SrcType>(value)); in strict_cast()
|
D | safe_math_impl.h | 544 using SrcType = typename internal::UnderlyingType<Src>::type; 545 return (std::is_integral<SrcType>::value || is_valid) 588 using SrcType = typename internal::UnderlyingType<Src>::type; 589 return (StaticDstRangeRelationToSrcRange<T, SrcType>::value ==
|
/external/pdfium/third_party/base/numerics/ |
D | safe_conversions.h | 78 using SrcType = typename internal::UnderlyingType<Src>::type; in checked_cast() local 79 return IsValueInRangeForNumericType<Dst, SrcType>(value) in checked_cast() 80 ? static_cast<Dst>(static_cast<SrcType>(value)) in checked_cast() 130 using SrcType = typename UnderlyingType<Src>::type; in saturated_cast() local 131 return saturated_cast_impl<Dst, SaturationHandler, SrcType>( in saturated_cast() 133 DstRangeRelationToSrcRange<Dst, SaturationHandler, SrcType>(value)); in saturated_cast() 141 using SrcType = typename UnderlyingType<Src>::type; in strict_cast() local 151 static_assert(StaticDstRangeRelationToSrcRange<Dst, SrcType>::value == in strict_cast() 156 return static_cast<Dst>(static_cast<SrcType>(value)); in strict_cast()
|
D | safe_math_impl.h | 545 using SrcType = typename internal::UnderlyingType<Src>::type; 546 return (std::is_integral<SrcType>::value || is_valid) 589 using SrcType = typename internal::UnderlyingType<Src>::type; 590 return (StaticDstRangeRelationToSrcRange<T, SrcType>::value ==
|
/external/gemmlowp/internal/ |
D | dispatch_gemm_shape.h | 55 typedef VectorMap<Scalar, Shape> SrcType; 59 static DstType Run(const SrcType& src) { 66 typedef MatrixMap<Scalar, Order> SrcType; 69 static DstType Run(const SrcType& src) { 76 typedef OutputStageQuantizeDownInt32ToUint8ScalePC<Shape> SrcType; 79 static DstType Run(const SrcType& src) { 90 typedef OutputStageBiasAddition<VectorMapType> SrcType; 93 static DstType Run(const SrcType& src) {
|
/external/skqp/tests/ |
D | VkHardwareBufferTest.cpp | 1290 enum class SrcType { enum 1302 SrcType srcType, DstType dstType, bool shareSyncs) { in run_test() 1303 if (SrcType::kCPU == srcType && shareSyncs) { in run_test() 1310 if (SrcType::kVulkan == srcType) { in run_test() 1312 } else if (SrcType::kEGL == srcType) { in run_test() 1353 if (SrcType::kCPU == srcType) { in run_test() 1375 if (SrcType::kCPU == srcType) { in run_test() 1506 run_test(reporter, options, SrcType::kCPU, DstType::kVulkan, false); in DEF_GPUTEST() 1510 run_test(reporter, options, SrcType::kEGL, DstType::kVulkan, false); in DEF_GPUTEST() 1514 run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan, false); in DEF_GPUTEST() [all …]
|
/external/deqp/framework/randomshaders/ |
D | rsgExpression.cpp | 512 template <typename SrcType, typename DstType> 513 inline DstType convert (SrcType src) in convert() 515 if (Scalar::min<SrcType>() == src) in convert() 517 else if (Scalar::max<SrcType>() == src) in convert() 542 template <typename SrcType, typename DstType> 543 inline void convertValueRange (SrcType srcMin, SrcType srcMax, DstType& dstMin, DstType& dstMax) in convertValueRange() 545 dstMin = convert<SrcType, DstType>(srcMin); in convertValueRange() 546 dstMax = convert<SrcType, DstType>(srcMax); in convertValueRange() 573 template <typename SrcType, typename DstType> 576 SrcType sMin, sMax; in isConversionOk() [all …]
|
/external/eigen/Eigen/src/OrderingMethods/ |
D | Ordering.h | 73 template <typename SrcType, unsigned int SrcUpLo> 74 void operator()(const SparseSelfAdjointView<SrcType, SrcUpLo>& mat, PermutationType& perm) in operator() 76 SparseMatrix<typename SrcType::Scalar, ColMajor, StorageIndex> C; C = mat; in operator()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 146 Value *Src, QualType SrcType, QualType DstType, 578 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument 579 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool() 581 if (SrcType->isRealFloatingType()) in EmitConversionToBool() 584 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool() 587 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool() 598 Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, in EmitFloatConversionCheck() argument 671 CGF.getContext().getFloatTypeSemantics(SrcType); in EmitFloatConversionCheck() 732 Value *ScalarExprEmitter::EmitScalarConversion(Value *Src, QualType SrcType, in EmitScalarConversion() argument 735 return EmitScalarConversion(Src, SrcType, DstType, Loc, false); in EmitScalarConversion() [all …]
|
D | CGExprComplex.cpp | 87 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType, 90 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType, 396 QualType SrcType, in EmitComplexToComplexCast() argument 400 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 406 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast() 407 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast() 412 QualType SrcType, in EmitScalarToComplexCast() argument 417 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
|
/external/skqp/gm/ |
D | xfermodes.cpp | 14 enum SrcType { enum 120 void draw_mode(SkCanvas* canvas, SkBlendMode mode, SrcType srcType, SkScalar x, SkScalar y) { in draw_mode() 251 draw_mode(canvas, gModes[i].fMode, static_cast<SrcType>(sourceType), in onDraw()
|
/external/skia/gm/ |
D | xfermodes.cpp | 14 enum SrcType { enum 120 void draw_mode(SkCanvas* canvas, SkBlendMode mode, SrcType srcType, SkScalar x, SkScalar y) { in draw_mode() 251 draw_mode(canvas, gModes[i].fMode, static_cast<SrcType>(sourceType), in onDraw()
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_compiler_util.c | 364 unsigned int SrcType; member 385 select->SrcType = src_type; in can_use_presub_data_add_select() 484 unsigned int src_type = d.Selects[i].SrcType; in rc_inst_can_use_presub() 488 src_type &= ~d.Selects[j].SrcType; in rc_inst_can_use_presub()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | ops_testutil.h | 129 template <typename T, typename SrcType> 131 std::initializer_list<SrcType> data) { in AddInputFromList()
|
/external/tensorflow/tensorflow/core/framework/ |
D | tensor_testutil.h | 66 template <typename T, typename SrcType> 67 void FillValues(Tensor* tensor, std::initializer_list<SrcType> vals) { in FillValues()
|
/external/clang/lib/AST/ |
D | ExprCXX.cpp | 570 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local 573 if (const PointerType *SrcPTy = SrcType->getAs<PointerType>()) { in isAlwaysNull() 574 SrcType = SrcPTy->getPointeeType(); in isAlwaysNull() 582 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
|
D | ExprConstant.cpp | 1658 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument 1673 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument 1685 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument 1697 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument 8022 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local 8103 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 8105 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 8108 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr() 8124 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr() 8133 SrcType); in VisitCastExpr() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceInstMIPS32.cpp | 645 const Type SrcType = Src->getType(); in emit() local 648 if ((isScalarIntegerType(DstType) && isScalarFloatingType(SrcType)) || in emit() 649 (isScalarFloatingType(DstType) && isScalarIntegerType(SrcType))) { in emit()
|
D | IceAssemblerMIPS32.cpp | 797 const Type SrcType = OpRs->getType(); in move() local 799 if ((isScalarIntegerType(DstType) && isScalarFloatingType(SrcType)) || in move() 800 (isScalarFloatingType(DstType) && isScalarIntegerType(SrcType))) { in move()
|
D | IceTargetLoweringX86BaseImpl.h | 7423 const Type SrcType = Src0->getType(); 7433 HelperID = isFloat32Asserting32Or64(SrcType) 7443 assert(SrcType == IceType_v4f32); 7448 HelperID = isFloat32Asserting32Or64(SrcType) 7452 HelperID = isFloat32Asserting32Or64(SrcType) 7456 HelperID = isFloat32Asserting32Or64(SrcType) 7465 if (!Traits::Is64Bit && SrcType == IceType_i64) { 7474 if (isVectorType(SrcType)) { 7476 assert(SrcType == IceType_v4i32); 7478 } else if (SrcType == IceType_i64 || [all …]
|