Home
last modified time | relevance | path

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

12345678910>>...30

/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/swiftshader/third_party/llvm-7.0/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()
95 LLVMGetParamTypes(Src, Params); in Clone()
100 LLVMTypeRef FunTy = LLVMFunctionType(Clone(LLVMGetReturnType(Src)), in Clone()
102 LLVMIsFunctionVarArg(Src)); in Clone()
109 const char *Name = LLVMGetStructName(Src); in Clone()
[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/angle/src/common/third_party/base/anglebase/numerics/
Dsafe_conversions_impl.h56 typename Src,
60 IntegerRepresentation SrcSign = std::numeric_limits<Src>::is_signed
67 template <typename Dst, typename Src, IntegerRepresentation Sign>
68 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign>
71 MaxExponent<Dst>::value >= MaxExponent<Src>::value ? NUMERIC_RANGE_CONTAINED
77 template <typename Dst, typename Src>
79 Src,
84 MaxExponent<Dst>::value > MaxExponent<Src>::value ? NUMERIC_RANGE_CONTAINED
89 template <typename Dst, typename Src>
91 Src,
[all …]
Dsafe_math.h65 template <typename Src>
66 CheckedNumeric(const CheckedNumeric<Src> &rhs) : state_(rhs.ValueUnsafe(), rhs.validity()) in CheckedNumeric()
69 template <typename Src>
70 CheckedNumeric(Src value, RangeConstraint validity) : state_(value, validity) in CheckedNumeric()
75 template <typename Src>
76 CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric()
79 static_assert(std::numeric_limits<Src>::is_specialized, "Argument must be numeric."); in CheckedNumeric()
84 template <typename Src>
85 CheckedNumeric(StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric()
86 : state_(static_cast<Src>(value)) in CheckedNumeric()
[all …]
Dsafe_conversions.h24 template <typename Dst, typename Src>
25 constexpr bool IsValueInRangeForNumericType(Src value) in IsValueInRangeForNumericType()
50 template <typename Dst, typename Src>
51 inline Dst checked_cast(Src value) in checked_cast()
82 template <typename Dst, class NaNHandler, typename Src>
83 constexpr Dst saturated_cast_impl(const Src value, const RangeConstraint constraint) in saturated_cast_impl()
101 template <typename Dst, class NaNHandler = SaturatedCastNaNBehaviorReturnZero, typename Src>
102 constexpr Dst saturated_cast(Src value) in saturated_cast()
113 template <typename Dst, typename Src>
114 constexpr Dst strict_cast(Src value) in strict_cast()
[all …]
/external/v8/src/base/
Dsafe_conversions.h40 template <typename Dst, typename Src>
43 static constexpr Dst Do(Src) { in Do()
53 template <typename Dst, typename Src, typename Enable = void>
56 static constexpr bool Do(Src value) { in Do()
63 template <typename Dst, typename Src>
65 Dst, Src,
67 std::is_integral<Dst>::value && std::is_integral<Src>::value &&
68 std::is_signed<Dst>::value && std::is_signed<Src>::value &&
69 !IsTypeInRangeForNumericType<Dst, Src>::value>::type> {
72 static constexpr bool Do(Src value) {
[all …]
Dsafe_conversions_impl.h151 template <typename Dst, typename Src,
155 IntegerRepresentation SrcSign = std::is_signed<Src>::value
162 template <typename Dst, typename Src, IntegerRepresentation Sign>
163 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> {
165 MaxExponent<Dst>::value >= MaxExponent<Src>::value
172 template <typename Dst, typename Src>
174 Src,
178 MaxExponent<Dst>::value > MaxExponent<Src>::value
184 template <typename Dst, typename Src>
186 Src,
[all …]
/external/pdfium/third_party/base/numerics/
Dsafe_conversions.h28 template <typename Dst, typename Src>
31 static constexpr Dst Do(Src) { in Do()
41 template <typename Dst, typename Src, typename Enable = void>
44 static constexpr bool Do(Src value) { in Do()
51 template <typename Dst, typename Src>
54 Src,
56 std::is_integral<Dst>::value && std::is_integral<Src>::value &&
57 std::is_signed<Dst>::value && std::is_signed<Src>::value &&
58 !IsTypeInRangeForNumericType<Dst, Src>::value>::type> {
61 static constexpr bool Do(Src value) {
[all …]
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_impl.h149 typename Src,
153 IntegerRepresentation SrcSign = std::is_signed<Src>::value
160 template <typename Dst, typename Src, IntegerRepresentation Sign>
161 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> {
163 MaxExponent<Dst>::value >= MaxExponent<Src>::value
170 template <typename Dst, typename Src>
172 Src,
176 MaxExponent<Dst>::value > MaxExponent<Src>::value
182 template <typename Dst, typename Src>
184 Src,
[all …]
/external/libchrome/base/numerics/
Dsafe_conversions.h27 template <typename Dst, typename Src>
30 static constexpr Dst Do(Src) { in Do()
40 template <typename Dst, typename Src, typename Enable = void>
43 static constexpr bool Do(Src value) { in Do()
50 template <typename Dst, typename Src>
53 Src,
55 std::is_integral<Dst>::value && std::is_integral<Src>::value &&
56 std::is_signed<Dst>::value && std::is_signed<Src>::value &&
57 !IsTypeInRangeForNumericType<Dst, Src>::value>::type> {
60 static constexpr bool Do(Src value) {
[all …]
Dchecked_math.h29 template <typename Src>
30 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
33 template <typename Src>
38 template <typename Src>
39 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric()
41 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in CheckedNumeric()
46 template <typename Src>
48 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric()
49 : state_(static_cast<Src>(value)) {} in CheckedNumeric()
97 template <typename Dst = T, typename Src>
[all …]
Dclamped_math.h29 template <typename Src>
30 constexpr ClampedNumeric(const ClampedNumeric<Src>& rhs) in ClampedNumeric()
33 template <typename Src>
38 template <typename Src>
39 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit) in ClampedNumeric()
41 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in ClampedNumeric()
46 template <typename Src>
48 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in ClampedNumeric()
49 : value_(saturated_cast<T>(static_cast<Src>(value))) {} in ClampedNumeric()
59 template <typename Src>
[all …]
Dsafe_conversions_impl.h148 typename Src,
152 IntegerRepresentation SrcSign = std::is_signed<Src>::value
159 template <typename Dst, typename Src, IntegerRepresentation Sign>
160 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> {
162 MaxExponent<Dst>::value >= MaxExponent<Src>::value
169 template <typename Dst, typename Src>
171 Src,
175 MaxExponent<Dst>::value > MaxExponent<Src>::value
181 template <typename Dst, typename Src>
183 Src,
[all …]
/external/swiftshader/src/Shader/
DVertexProgram.hpp64 typedef Shader::SourceParameter Src; typedef in sw::VertexProgram
72 Vector4f fetchRegister(const Src &src, unsigned int offset = 0);
73 Vector4f readConstant(const Src &src, unsigned int offset = 0);
80 void M3X2(Vector4f &dst, Vector4f &src0, Src &src1);
81 void M3X3(Vector4f &dst, Vector4f &src0, Src &src1);
82 void M3X4(Vector4f &dst, Vector4f &src0, Src &src1);
83 void M4X3(Vector4f &dst, Vector4f &src0, Src &src1);
84 void M4X4(Vector4f &dst, Vector4f &src0, Src &src1);
87 void BREAKP(const Src &predicateRegister);
93 void CALLNZ(int labelIndex, int callSiteIndex, const Src &src);
[all …]
DPixelProgram.hpp66 …Vector4f sampleTexture(const Src &sampler, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &…
74 Vector4f fetchRegister(const Src &src, unsigned int offset = 0);
75 Vector4f readConstant(const Src &src, unsigned int offset = 0);
86 void M3X2(Vector4f &dst, Vector4f &src0, const Src &src1);
87 void M3X3(Vector4f &dst, Vector4f &src0, const Src &src1);
88 void M3X4(Vector4f &dst, Vector4f &src0, const Src &src1);
89 void M4X3(Vector4f &dst, Vector4f &src0, const Src &src1);
90 void M4X4(Vector4f &dst, Vector4f &src0, const Src &src1);
91 void TEX(Vector4f &dst, Vector4f &src0, const Src &src1, bool project, bool bias);
92 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/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 …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_transform.h304 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op1_inst()
331 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op2_inst()
332 tgsi_transform_src_reg_xyzw(&inst.Src[1], src1_file, src1_index); in tgsi_transform_op2_inst()
333 inst.Src[1].Register.Negate = src1_negate; in tgsi_transform_op2_inst()
361 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op3_inst()
362 tgsi_transform_src_reg_xyzw(&inst.Src[1], src1_file, src1_index); in tgsi_transform_op3_inst()
363 tgsi_transform_src_reg_xyzw(&inst.Src[2], src2_file, src2_index); in tgsi_transform_op3_inst()
389 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op1_swz_inst()
392 inst.Src[0].Register.SwizzleX = src0_swizzle; in tgsi_transform_op1_swz_inst()
395 inst.Src[0].Register.SwizzleY = src0_swizzle; in tgsi_transform_op1_swz_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()
282 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_lrp()
283 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_lrp()
[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 …]

12345678910>>...30