Home
last modified time | relevance | path

Searched refs:Src (Results 1 – 25 of 484) sorted by relevance

12345678910>>...20

/external/webrtc/webrtc/base/
Dsafe_conversions_impl.h39 template <typename Dst, typename Src,
42 SrcSign IsSrcSigned = std::numeric_limits<Src>::is_signed ?
46 template <typename Dst, typename Src>
47 struct StaticRangeCheck<Dst, Src, DST_SIGNED, SRC_SIGNED> {
49 typedef std::numeric_limits<Src> SrcLimits;
56 (sizeof(Src) * 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 …]
/external/llvm/tools/llvm-c-test/
Decho.cpp64 LLVMTypeRef Clone(LLVMValueRef Src) { in Clone()
65 return Clone(LLVMTypeOf(Src)); in Clone()
68 LLVMTypeRef Clone(LLVMTypeRef Src) { in Clone()
69 LLVMTypeKind Kind = LLVMGetTypeKind(Src); in Clone()
88 return LLVMIntTypeInContext(Ctx, LLVMGetIntTypeWidth(Src)); in Clone()
90 unsigned ParamCount = LLVMCountParamTypes(Src); in Clone()
94 LLVMGetParamTypes(Src, Params); in Clone()
99 LLVMTypeRef FunTy = LLVMFunctionType(Clone(LLVMGetReturnType(Src)), in Clone()
101 LLVMIsFunctionVarArg(Src)); in Clone()
108 const char *Name = LLVMGetStructName(Src); in Clone()
[all …]
/external/v8/src/base/
Dsafe_conversions_impl.h51 typename Src,
56 std::numeric_limits<Src>::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>
75 Src,
79 MaxExponent<Dst>::value > MaxExponent<Src>::value
85 template <typename Dst, typename Src>
87 Src,
[all …]
Dsafe_math.h55 template <typename Src>
56 CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
59 template <typename Src>
60 CheckedNumeric(Src value, RangeConstraint validity) in CheckedNumeric()
65 template <typename Src>
66 CheckedNumeric(Src value) // NOLINT in CheckedNumeric()
69 STATIC_ASSERT(std::numeric_limits<Src>::is_specialized); in CheckedNumeric()
117 template <typename Src> CheckedNumeric& operator+=(Src rhs);
118 template <typename Src> CheckedNumeric& operator-=(Src rhs);
119 template <typename Src> CheckedNumeric& operator*=(Src rhs);
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_transform.h268 inst.Src[0].Register.File = src0_file; in tgsi_transform_op1_inst()
269 inst.Src[0].Register.Index = src0_index; in tgsi_transform_op1_inst()
296 inst.Src[0].Register.File = src0_file; in tgsi_transform_op2_inst()
297 inst.Src[0].Register.Index = src0_index; in tgsi_transform_op2_inst()
298 inst.Src[1].Register.File = src1_file; in tgsi_transform_op2_inst()
299 inst.Src[1].Register.Index = src1_index; in tgsi_transform_op2_inst()
300 inst.Src[1].Register.Negate = src1_negate; in tgsi_transform_op2_inst()
328 inst.Src[0].Register.File = src0_file; in tgsi_transform_op3_inst()
329 inst.Src[0].Register.Index = src0_index; in tgsi_transform_op3_inst()
330 inst.Src[1].Register.File = src1_file; in tgsi_transform_op3_inst()
[all …]
Dtgsi_lowering.c143 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in create_mov()
201 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_dst()
202 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_dst()
222 reg_src(&new_inst.Src[0], src0, SWIZ(_, Y, _, _)); in transform_dst()
223 reg_src(&new_inst.Src[1], src1, SWIZ(_, Y, _, _)); in transform_dst()
234 reg_src(&new_inst.Src[0], src0, SWIZ(_, _, Z, _)); in transform_dst()
245 reg_src(&new_inst.Src[0], src1, SWIZ(_, _, _, W)); in transform_dst()
256 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(Y, _, _, _)); in transform_dst()
280 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_xpd()
281 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_xpd()
[all …]
/external/swiftshader/src/Shader/
DVertexProgram.hpp62 typedef Shader::SourceParameter Src; typedef in sw::VertexProgram
70 Vector4f fetchRegister(const Src &src, unsigned int offset = 0);
71 Vector4f readConstant(const Src &src, unsigned int offset = 0);
77 void M3X2(Vector4f &dst, Vector4f &src0, Src &src1);
78 void M3X3(Vector4f &dst, Vector4f &src0, Src &src1);
79 void M3X4(Vector4f &dst, Vector4f &src0, Src &src1);
80 void M4X3(Vector4f &dst, Vector4f &src0, Src &src1);
81 void M4X4(Vector4f &dst, Vector4f &src0, Src &src1);
84 void BREAKP(const Src &predicateRegister);
89 void CALLNZ(int labelIndex, int callSiteIndex, const Src &src);
[all …]
DPixelProgram.hpp85 …Vector4f sampleTexture(const Src &sampler, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &…
93 Vector4f fetchRegister(const Src &src, unsigned int offset = 0);
94 Vector4f readConstant(const Src &src, unsigned int offset = 0);
104 void M3X2(Vector4f &dst, Vector4f &src0, const Src &src1);
105 void M3X3(Vector4f &dst, Vector4f &src0, const Src &src1);
106 void M3X4(Vector4f &dst, Vector4f &src0, const Src &src1);
107 void M4X3(Vector4f &dst, Vector4f &src0, const Src &src1);
108 void M4X4(Vector4f &dst, Vector4f &src0, const Src &src1);
109 void TEX(Vector4f &dst, Vector4f &src0, const Src &src1, bool project, bool bias);
110 void TEXLOD(Vector4f &dst, Vector4f &src0, const Src &src1, Float4 &lod);
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_program_pair.c53 if (rgb && pair->RGB.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source()
54 && index != pair->RGB.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source()
58 if (alpha && pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source()
59 && index != pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source()
67 if (pair->RGB.Src[i].Used) { in rc_pair_alloc_source()
68 if (pair->RGB.Src[i].File != file || in rc_pair_alloc_source()
69 pair->RGB.Src[i].Index != index) { in rc_pair_alloc_source()
77 if (pair->Alpha.Src[i].Used) { in rc_pair_alloc_source()
78 if (pair->Alpha.Src[i].File != file || in rc_pair_alloc_source()
79 pair->Alpha.Src[i].Index != index) { in rc_pair_alloc_source()
[all …]
/external/pdfium/third_party/base/numerics/
Dsafe_math.h106 template <typename Src>
107 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
110 template <typename Src>
115 template <typename Src>
116 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric()
118 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in CheckedNumeric()
123 template <typename Src>
125 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric()
126 : state_(static_cast<Src>(value)) {} in CheckedNumeric()
166 template <typename Dst = T, typename Src>
[all …]
Dsafe_conversions.h53 template <typename Dst, typename Src>
54 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType()
74 template <typename Dst, class CheckHandler = CheckOnFailure, typename Src>
75 constexpr Dst checked_cast(Src value) { in checked_cast()
78 using SrcType = typename internal::UnderlyingType<Src>::type; 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()
116 : (std::is_integral<Src>::value || !constraint.IsUnderflowFlagSet() in saturated_cast_impl()
128 typename Src>
129 constexpr Dst saturated_cast(Src value) { in saturated_cast()
[all …]
/external/libchrome/base/numerics/
Dsafe_math.h105 template <typename Src>
106 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
109 template <typename Src>
114 template <typename Src>
115 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric()
117 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in CheckedNumeric()
122 template <typename Src>
124 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric()
125 : state_(static_cast<Src>(value)) {} in CheckedNumeric()
165 template <typename Dst = T, typename Src>
[all …]
Dsafe_conversions.h52 template <typename Dst, typename Src>
53 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType()
75 typename Src>
76 constexpr Dst checked_cast(Src value) { in checked_cast()
79 using SrcType = typename internal::UnderlyingType<Src>::type; 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()
117 : (std::is_integral<Src>::value || !constraint.IsUnderflowFlagSet() in saturated_cast_impl()
129 typename Src>
130 constexpr Dst saturated_cast(Src value) { in saturated_cast()
[all …]
Dsafe_numerics_unittest.cc59 template <typename Dst, typename Src>
62 using SrcLimits = numeric_limits<Src>; in GetMaxConvertibleToFloat()
68 MaxExponent<Src>::value <= MaxExponent<Dst>::value) in GetMaxConvertibleToFloat()
70 Src max = SrcLimits::max() / 2 + (SrcLimits::is_integer ? 1 : 0); in GetMaxConvertibleToFloat()
71 while (max != static_cast<Src>(static_cast<Dst>(max))) { in GetMaxConvertibleToFloat()
513 template <typename Dst, typename Src, NumericConversionType conversion>
538 template <typename Dst, typename Src>
541 using SrcLimits = numeric_limits<Src>; in TestStrictComparison()
542 static_assert(StrictNumeric<Src>(SrcLimits::lowest()) < DstLimits::max(), ""); in TestStrictComparison()
543 static_assert(StrictNumeric<Src>(SrcLimits::lowest()) < SrcLimits::max(), ""); in TestStrictComparison()
[all …]
/external/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()
32 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Src(), dwordAddress(T1)); \ in TEST_F()
33 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
82 #define TestArithSS(FloatSize, Src, Dst0, Dst1) \ in TEST_F() argument
84 TestArithSSXmmXmm(FloatSize, Src, 1.0, Dst0, 10.0, addss, +); \ in TEST_F()
86 TestArithSSXmmXmm(FloatSize, Src, 3.0, Dst0, 30.0, subss, -); \ in TEST_F()
88 TestArithSSXmmXmm(FloatSize, Src, 5.0, Dst0, 50.0, mulss, *); \ in TEST_F()
90 TestArithSSXmmXmm(FloatSize, Src, 7.0, Dst0, 70.0, divss, / ); \ in TEST_F()
94 #define TestImpl(Src, Dst0, Dst1) \ in TEST_F() argument
[all …]
DDataMov.cpp99 #define TestMemReg(Src, Size) \ in TEST_F() argument
101 static constexpr char TestString[] = "(" #Src ", " #Size ")"; \ in TEST_F()
106 __ mov(IceType_i32, Encoded_GPR_##Src(), Immediate(Value)); \ in TEST_F()
107 __ mov(IceType_i##Size, dwordAddress(T0), Encoded_GPR_##Src()); \ in TEST_F()
118 #define TestImpl(Src) \ in TEST_F() argument
120 TestMemReg(Src, 8); \ in TEST_F()
121 TestMemReg(Src, 16); \ in TEST_F()
122 TestMemReg(Src, 32); \ in TEST_F()
123 TestMemReg(Src, 64); \ in TEST_F()
156 #define TestRegReg(Dst, Src, Suffix, Size) \ in TEST_F() argument
[all …]
/external/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()
33 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Src, \ in TEST_F()
36 XmmRegister::Encoded_Reg_##Src); \ in TEST_F()
87 #define TestArithSS(FloatSize, Src, Dst0, Dst1) \ in TEST_F() argument
89 TestArithSSXmmXmm(FloatSize, Src, 1.0, Dst0, 10.0, addss, +); \ in TEST_F()
91 TestArithSSXmmXmm(FloatSize, Src, 3.0, Dst0, 30.0, subss, -); \ in TEST_F()
93 TestArithSSXmmXmm(FloatSize, Src, 5.0, Dst0, 50.0, mulss, *); \ in TEST_F()
95 TestArithSSXmmXmm(FloatSize, Src, 7.0, Dst0, 70.0, divss, / ); \ in TEST_F()
123 #define TestPArithXmmXmm(Dst, Value0, Src, Value1, Inst, Op, Type, Size) \ in TEST_F() argument
[all …]
DGPRArith.cpp326 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
330 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
336 __ mov(IceType_i##Size, GPRRegister::Encoded_Reg_##Src, \ in TEST_F()
339 GPRRegister::Encoded_Reg_##Src); \ in TEST_F()
388 #define TestImplAddrReg(Value0, Src, Value1, Size) \ in TEST_F() argument
392 "(Addr, " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
397 __ mov(IceType_i##Size, GPRRegister::Encoded_Reg_##Src, \ in TEST_F()
400 GPRRegister::Encoded_Reg_##Src); \ in TEST_F()
446 #define TestImplValues(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
448 TestImplRegReg(Dst, Value0, Src, Value1, Size); \ in TEST_F()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonPeephole.cpp105 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src);
141 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction() local
143 unsigned SrcReg = Src.getReg(); in runOnMachineFunction()
190 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction() local
192 unsigned SrcReg = Src.getReg(); in runOnMachineFunction()
208 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction() local
211 if (Src.getSubReg() != Hexagon::subreg_loreg) in runOnMachineFunction()
215 unsigned SrcReg = Src.getReg(); in runOnMachineFunction()
300 void HexagonPeephole::ChangeOpInto(MachineOperand &Dst, MachineOperand &Src) { in ChangeOpInto() argument
301 assert (&Dst != &Src && "Cannot duplicate into itself"); in ChangeOpInto()
[all …]
/external/llvm/lib/CodeGen/
DMachineBranchProbabilityInfo.cpp44 const MachineBasicBlock *Src, in getEdgeProbability() argument
46 return Src->getSuccProbability(Dst); in getEdgeProbability()
50 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() argument
53 return getEdgeProbability(Src, in getEdgeProbability()
54 std::find(Src->succ_begin(), Src->succ_end(), Dst)); in getEdgeProbability()
58 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in isEdgeHot() argument
60 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot()
84 raw_ostream &OS, const MachineBasicBlock *Src, in printEdgeProbability() argument
87 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
88 OS << "edge MBB#" << Src->getNumber() << " -> MBB#" << Dst->getNumber() in printEdgeProbability()
[all …]
/external/skia/dm/
DDMSrcSink.h69 struct Src { struct
70 virtual ~Src() {} in ~Src() argument
89 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log) argument
103 class GMSrc : public Src {
116 class CodecSrc : public Src {
151 class AndroidCodecSrc : public Src {
169 class BRDSrc : public Src {
194 class ImageGenSrc : public Src {
215 class ColorCodecSrc : public Src {
242 class SKPSrc : public Src {
[all …]
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringMIPS32.h178 void _andi(Variable *Dest, Variable *Src, uint32_t Imm) { in _andi() argument
179 Context.insert<InstMIPS32Andi>(Dest, Src, Imm); in _andi()
210 void _abs_d(Variable *Dest, Variable *Src) { in _abs_d() argument
211 Context.insert<InstMIPS32Abs_d>(Dest, Src); in _abs_d()
214 void _abs_s(Variable *Dest, Variable *Src) { in _abs_s() argument
215 Context.insert<InstMIPS32Abs_s>(Dest, Src); in _abs_s()
218 void _addi(Variable *Dest, Variable *Src, uint32_t Imm) { in _addi() argument
219 Context.insert<InstMIPS32Addi>(Dest, Src, Imm); in _addi()
230 void _addiu(Variable *Dest, Variable *Src, uint32_t Imm) { in _addiu() argument
231 Context.insert<InstMIPS32Addiu>(Dest, Src, Imm); in _addiu()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineBranchProbabilityInfo.cpp47 MachineBranchProbabilityInfo::getEdgeWeight(MachineBasicBlock *Src, in getEdgeWeight() argument
49 uint32_t Weight = Src->getSuccWeight(Dst); in getEdgeWeight()
55 bool MachineBranchProbabilityInfo::isEdgeHot(MachineBasicBlock *Src, in isEdgeHot() argument
58 uint32_t Weight = getEdgeWeight(Src, Dst); in isEdgeHot()
59 uint32_t Sum = getSumForBlock(Src); in isEdgeHot()
95 MachineBranchProbabilityInfo::getEdgeProbability(MachineBasicBlock *Src, in getEdgeProbability() argument
97 uint32_t N = getEdgeWeight(Src, Dst); in getEdgeProbability()
98 uint32_t D = getSumForBlock(Src); in getEdgeProbability()
104 printEdgeProbability(raw_ostream &OS, MachineBasicBlock *Src, in printEdgeProbability() argument
107 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_fpc_optimize.c250 copy_src_reg(&o->Src[0].Register, &i->Src[0].Register); in copy_instruction()
251 copy_src_reg(&o->Src[1].Register, &i->Src[1].Register); in copy_instruction()
252 copy_src_reg(&o->Src[2].Register, &i->Src[2].Register); in copy_instruction()
344 src_reg = &current->FullInstruction.Src[2]; in liveness_analysis()
347 src_reg = &current->FullInstruction.Src[1]; in liveness_analysis()
350 src_reg = &current->FullInstruction.Src[0]; in liveness_analysis()
416 same_src_dst_reg(&next->FullInstruction.Src[0], &current->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_before_tex()
417 is_unswizzled(&current->FullInstruction.Src[0], i915_tex_mask(next)) && in i915_fpc_optimize_mov_before_tex()
420 …memcpy(&next->FullInstruction.Src[0], &current->FullInstruction.Src[0], sizeof(struct i915_src_reg… in i915_fpc_optimize_mov_before_tex()
445 same_src_reg(&next->FullInstruction.Src[0], &current->FullInstruction.Src[0]) && in i915_fpc_optimize_mov_after_mov()
[all …]
/external/skqp/dm/
DDMSrcSink.h69 struct Src { struct
70 virtual ~Src() {} in ~Src() argument
89 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log) argument
103 class GMSrc : public Src {
116 class CodecSrc : public Src {
151 class AndroidCodecSrc : public Src {
169 class BRDSrc : public Src {
194 class ImageGenSrc : public Src {
215 class ColorCodecSrc : public Src {
242 class SKPSrc : public Src {
[all …]

12345678910>>...20