Home
last modified time | relevance | path

Searched refs:SrcType (Results 1 – 25 of 27) sorted by relevance

12

/third_party/gn/src/base/numerics/
Dsafe_conversions.h84 using SrcType = typename internal::UnderlyingType<Src>::type;
85 return internal::IsValueInRangeFastOp<Dst, SrcType>::is_supported
86 ? internal::IsValueInRangeFastOp<Dst, SrcType>::Do(
87 static_cast<SrcType>(value))
89 static_cast<SrcType>(value))
102 using SrcType = typename internal::UnderlyingType<Src>::type;
104 ? static_cast<Dst>(static_cast<SrcType>(value))
188 using SrcType = typename UnderlyingType<Src>::type;
190 SaturateFastOp<Dst, SrcType>::is_supported &&
193 ? SaturateFastOp<Dst, SrcType>::Do(static_cast<SrcType>(value))
[all …]
Dchecked_math_impl.h479 using SrcType = typename internal::UnderlyingType<Src>::type;
480 return (std::is_integral<SrcType>::value || is_valid)
523 using SrcType = typename internal::UnderlyingType<Src>::type;
524 return (StaticDstRangeRelationToSrcRange<T, SrcType>::value ==
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dsafe_conversions.h104 using SrcType = typename internal::UnderlyingType<Src>::type;
105 return internal::IsValueInRangeFastOp<Dst, SrcType>::is_supported
106 ? internal::IsValueInRangeFastOp<Dst, SrcType>::Do(static_cast<SrcType>(value))
107 : internal::DstRangeRelationToSrcRange<Dst>(static_cast<SrcType>(value)).IsValid();
118 using SrcType = typename internal::UnderlyingType<Src>::type;
120 ? static_cast<Dst>(static_cast<SrcType>(value))
217 using SrcType = typename UnderlyingType<Src>::type;
218 return !IsCompileTimeConstant(value) && SaturateFastOp<Dst, SrcType>::is_supported &&
220 ? SaturateFastOp<Dst, SrcType>::Do(static_cast<SrcType>(value))
221 : saturated_cast_impl<Dst, SaturationHandler, SrcType>(
[all …]
Dchecked_math_impl.h588 using SrcType = typename internal::UnderlyingType<Src>::type;
589 return (std::is_integral<SrcType>::value || is_valid) ? static_cast<T>(value) : 0;
630 using SrcType = typename internal::UnderlyingType<Src>::type;
631 return (StaticDstRangeRelationToSrcRange<T, SrcType>::value == NUMERIC_RANGE_CONTAINED ||
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DMachineIRBuilder.h129 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; enum
130 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} in SrcOp()
131 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in SrcOp()
132 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp()
133 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in SrcOp()
139 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
140 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
144 case SrcType::Ty_Predicate: in addSrcToMIB()
147 case SrcType::Ty_Reg: in addSrcToMIB()
150 case SrcType::Ty_MIB: in addSrcToMIB()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/
DConvertVertex.comp71 #define SrcType int
73 #define SrcType uint
75 #define SrcType float
199 SrcType loadSourceComponent(uint cd)
227 // Convert to SrcType
238 SrcType value = SrcType(valueAsUint);
240 SrcType value = valueAsUint;
249 SrcType value = (2 * float(valueAsInt) + 1) / valueMask;
253 SrcType value = valueAsUint / positiveMax;
256 SrcType value = int(valueAsUint) * divisor;
[all …]
DImageCopy.frag16 #define SrcType vec4
19 #define SrcType ivec4
22 #define SrcType uvec4
78SrcType srcValue = texelFetch(src, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), p…
80 SrcType srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/
DConvertVertex.comp70 #define SrcType int
72 #define SrcType uint
74 #define SrcType float
197 SrcType loadSourceComponent(uint cd)
251 // Convert to SrcType
262 SrcType value = SrcType(valueAsUint);
264 SrcType value = valueAsUint;
273 SrcType value = float(valueAsInt) / (valueMask >> 1);
278 SrcType value = valueAsUint / positiveMax;
281 SrcType value = int(valueAsUint) * divisor;
[all …]
DImageCopy.frag16 #define SrcType vec4
19 #define SrcType ivec4
22 #define SrcType uvec4
135 SrcType srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip);
137SrcType srcValue = texelFetch(src, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), p…
/third_party/flutter/skia/tests/
DVkHardwareBufferTest.cpp1058 enum class SrcType { enum
1070 SrcType srcType, DstType dstType, bool shareSyncs) { in run_test()
1071 if (SrcType::kCPU == srcType && shareSyncs) { in run_test()
1078 if (SrcType::kVulkan == srcType) { in run_test()
1080 } else if (SrcType::kEGL == srcType) { in run_test()
1121 if (SrcType::kCPU == srcType) { in run_test()
1143 if (SrcType::kCPU == srcType) { in run_test()
1275 run_test(reporter, options, SrcType::kCPU, DstType::kVulkan, false); in DEF_GPUTEST()
1279 run_test(reporter, options, SrcType::kEGL, DstType::kVulkan, false); in DEF_GPUTEST()
1283 run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan, false); in DEF_GPUTEST()
[all …]
/third_party/skia/tests/
DVkHardwareBufferTest.cpp1070 enum class SrcType { enum
1082 SrcType srcType, DstType dstType, bool shareSyncs) { in run_test()
1083 if (SrcType::kCPU == srcType && shareSyncs) { in run_test()
1090 if (SrcType::kVulkan == srcType) { in run_test()
1092 } else if (SrcType::kEGL == srcType) { in run_test()
1141 if (SrcType::kCPU == srcType) { in run_test()
1163 if (SrcType::kCPU == srcType) { in run_test()
1295 run_test(reporter, options, SrcType::kCPU, DstType::kVulkan, false); in DEF_GPUTEST()
1299 run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan, false); in DEF_GPUTEST()
1303 run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan, true); in DEF_GPUTEST()
[all …]
/third_party/vk-gl-cts/framework/randomshaders/
DrsgExpression.cpp537 template <typename SrcType, typename DstType>
538 inline DstType convert (SrcType src) in convert()
540 if (Scalar::min<SrcType>() == src) in convert()
542 else if (Scalar::max<SrcType>() == src) in convert()
567 template <typename SrcType, typename DstType>
568 inline void convertValueRange (SrcType srcMin, SrcType srcMax, DstType& dstMin, DstType& dstMax) in convertValueRange()
570 dstMin = convert<SrcType, DstType>(srcMin); in convertValueRange()
571 dstMax = convert<SrcType, DstType>(srcMax); in convertValueRange()
598 template <typename SrcType, typename DstType>
601 SrcType sMin, sMax; in isConversionOk()
[all …]
/third_party/flutter/skia/gm/
Dxfermodes.cpp28 enum SrcType { enum
134 void draw_mode(SkCanvas* canvas, SkBlendMode mode, SrcType srcType, SkScalar x, SkScalar y) { in draw_mode()
264 draw_mode(canvas, gModes[i].fMode, static_cast<SrcType>(sourceType), in onDraw()
/third_party/skia/gm/
Dxfermodes.cpp28 enum SrcType { enum
134 void draw_mode(SkCanvas* canvas, SkBlendMode mode, SrcType srcType, SkScalar x, SkScalar y) { in draw_mode()
266 draw_mode(canvas, gModes[i].fMode, static_cast<SrcType>(sourceType), in onDraw()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_compiler_util.c364 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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_internal_shaders_autogen.h156 enum SrcType enum
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp207 LLT SrcType = MRI.getType(Src1); in matchCombineShuffleVector() local
212 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector()
266 UndefReg = Builder.buildUndef(SrcType).getReg(0); in matchCombineShuffleVector()
DCSEMIRBuilder.cpp73 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
DMachineIRBuilder.cpp1019 assert(SrcOps[0].getSrcOpKind() == SrcOp::SrcType::Ty_Predicate && in buildInstr()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceInstMIPS32.cpp551 const Type SrcType = Src->getType(); in emit() local
554 if ((isScalarIntegerType(DstType) && isScalarFloatingType(SrcType)) || in emit()
555 (isScalarFloatingType(DstType) && isScalarIntegerType(SrcType))) { in emit()
DIceAssemblerMIPS32.cpp799 const Type SrcType = OpRs->getType(); in move() local
801 if ((isScalarIntegerType(DstType) && isScalarFloatingType(SrcType)) || in move()
802 (isScalarFloatingType(DstType) && isScalarIntegerType(SrcType))) { in move()
DIceTargetLoweringX8632.cpp6921 const Type SrcType = Src0->getType(); in genTargetHelperCallFor() local
6931 HelperID = isFloat32Asserting32Or64(SrcType) in genTargetHelperCallFor()
6941 assert(SrcType == IceType_v4f32); in genTargetHelperCallFor()
6945 HelperID = isFloat32Asserting32Or64(SrcType) in genTargetHelperCallFor()
6949 HelperID = isFloat32Asserting32Or64(SrcType) in genTargetHelperCallFor()
6958 if (SrcType == IceType_i64) { in genTargetHelperCallFor()
6967 if (isVectorType(SrcType)) { in genTargetHelperCallFor()
6969 assert(SrcType == IceType_v4i32); in genTargetHelperCallFor()
6971 } else if (SrcType == IceType_i64 || SrcType == IceType_i32) { in genTargetHelperCallFor()
6972 if (isInt32Asserting32Or64(SrcType)) { in genTargetHelperCallFor()
DIceTargetLoweringX8664.cpp6209 const Type SrcType = Src0->getType(); in genTargetHelperCallFor() local
6220 assert(SrcType == IceType_v4f32); in genTargetHelperCallFor()
6223 HelperID = isFloat32Asserting32Or64(SrcType) in genTargetHelperCallFor()
6231 if (isVectorType(SrcType)) { in genTargetHelperCallFor()
6233 assert(SrcType == IceType_v4i32); in genTargetHelperCallFor()
6235 } else if (SrcType == IceType_i64) { in genTargetHelperCallFor()
6236 if (isInt32Asserting32Or64(SrcType)) { in genTargetHelperCallFor()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2197 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy()); in visitGetElementPtrInst() local
2198 Type *SrcEltType = SrcType->getElementType(); in visitGetElementPtrInst()
2258 if (SrcType->getPointerAddressSpace() != GEP.getAddressSpace()) in visitGetElementPtrInst()
2267 if (FindElementAtOffset(SrcType, Offset.getSExtValue(), NewIndices)) { in visitGetElementPtrInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBPFInstrInfo.td664 class BSWAP<bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Pattern>
665 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,

12