Home
last modified time | relevance | path

Searched refs:SrcType (Results 1 – 25 of 29) 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/node/deps/v8/src/base/
Dsafe_conversions.h100 using SrcType = typename internal::UnderlyingType<Src>::type;
101 return internal::IsValueInRangeFastOp<Dst, SrcType>::is_supported
102 ? internal::IsValueInRangeFastOp<Dst, SrcType>::Do(
103 static_cast<SrcType>(value))
105 static_cast<SrcType>(value))
117 using SrcType = typename internal::UnderlyingType<Src>::type;
119 ? static_cast<Dst>(static_cast<SrcType>(value))
212 using SrcType = typename UnderlyingType<Src>::type;
214 SaturateFastOp<Dst, SrcType>::is_supported &&
217 ? SaturateFastOp<Dst, SrcType>::Do(static_cast<SrcType>(value))
[all …]
/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/node/deps/v8/src/utils/
Dmemcopy.h267 template <typename SrcType, typename DstType>
268 void CopyChars(DstType* dst, const SrcType* src, size_t count) V8_NONNULL(1, 2);
270 template <typename SrcType, typename DstType>
271 void CopyChars(DstType* dst, const SrcType* src, size_t count) { in CopyChars()
272 STATIC_ASSERT(std::is_integral<SrcType>::value); in CopyChars()
274 using SrcTypeUnsigned = typename std::make_unsigned<SrcType>::type; in CopyChars()
280 Address src_end = src_start + count * sizeof(SrcType); in CopyChars()
/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/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/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.c371 unsigned int SrcType; member
392 select->SrcType = src_type; in can_use_presub_data_add_select()
491 unsigned int src_type = d.Selects[i].SrcType; in rc_inst_can_use_presub()
495 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()
DIceTargetLoweringMIPS32.cpp333 const Type SrcType = Src0->getType(); in genTargetHelperCallFor() local
339 for (SizeT I = 0; I < typeNumElements(SrcType); ++I) { in genTargetHelperCallFor()
341 auto *Op0 = Func->makeVariable(typeElementType(SrcType)); in genTargetHelperCallFor()
343 auto *Op1 = Func->makeVariable(typeElementType(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,
/third_party/node/deps/v8/src/codegen/mips/
Dassembler-mips.h1739 template <typename DstType, typename SrcType>
1741 SrcType src, DstType dst);

12