/external/libchrome/base/numerics/ |
D | safe_conversions.h | 27 template <typename Dst, typename Src> 30 static constexpr Dst Do(Src) { in Do() 32 return CheckOnFailure::template HandleFailure<Dst>(); in Do() 40 template <typename Dst, typename Src, typename Enable = void> 50 template <typename Dst, typename Src> 52 Dst, 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> { 63 return value == static_cast<Dst>(value); [all …]
|
D | safe_conversions_impl.h | 147 template <typename Dst, 149 IntegerRepresentation DstSign = std::is_signed<Dst>::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> 170 struct StaticDstRangeRelationToSrcRange<Dst, 175 MaxExponent<Dst>::value > MaxExponent<Src>::value 181 template <typename Dst, typename Src> 182 struct StaticDstRangeRelationToSrcRange<Dst, [all …]
|
D | safe_conversions_arm_impl.h | 18 template <typename Dst, typename Src> 21 std::is_signed<Src>::value && std::is_integral<Dst>::value && 24 IntegerBitsPlusSign<Dst>::value <= IntegerBitsPlusSign<int32_t>::value && 25 !IsTypeInRangeForNumericType<Dst, Src>::value; 27 __attribute__((always_inline)) static Dst Do(Src value) { in Do() 29 typename std::conditional<std::is_signed<Dst>::value, int32_t, in Do() 31 if (std::is_signed<Dst>::value) { in Do() 34 : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign<Dst>::value <= 32 in Do() 35 ? IntegerBitsPlusSign<Dst>::value in Do() 40 : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign<Dst>::value < 32 in Do() [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8664/ |
D | XmmArith.cpp | 17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument 22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ in TEST_F() 31 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T0)); \ in TEST_F() 33 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F() 46 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F() 50 #define TestArithSSXmmAddr(FloatSize, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument 55 "(" #FloatSize ", Addr, " #Value0 ", " #Dst ", " #Value1 ", " #Inst \ in TEST_F() 64 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T0)); \ in TEST_F() 65 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T1)); \ in TEST_F() 78 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F() [all …]
|
D | ControlFlow.cpp | 39 #define TestImpl(Dst, Src0, Src1) \ in TEST_F() argument 41 TestJ(o, Near, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F() 42 TestJ(o, Far, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F() 43 TestJ(no, Near, Dst, Src0, 0x1ul, Src1, 0x1ul); \ in TEST_F() 44 TestJ(no, Far, Dst, Src0, 0x1ul, Src1, 0x1ul); \ in TEST_F() 45 TestJ(b, Near, Dst, Src0, 0x1ul, Src1, 0x80000000ul); \ in TEST_F() 46 TestJ(b, Far, Dst, Src0, 0x1ul, Src1, 0x80000000ul); \ in TEST_F() 47 TestJ(ae, Near, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F() 48 TestJ(ae, Far, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ in TEST_F() 49 TestJ(e, Near, Dst, Src0, 0x80000000ul, Src1, 0x80000000ul); \ in TEST_F() [all …]
|
D | DataMov.cpp | 156 #define TestRegReg(Dst, Src, Suffix, Size) \ in TEST_F() argument 159 "(" #Dst ", " #Src ", " #Suffix ", " #Size ")"; \ in TEST_F() 166 __ mov(IceType_i64, Encoded_GPR_##Dst(), dwordAddress(T1)); \ in TEST_F() 167 __ mov(IceType_i##Size, Encoded_GPR_##Dst(), Encoded_GPR_##Src()); \ in TEST_F() 174 ASSERT_EQ((Marker & ~MaskResult##Size) | Value, test.Dst()) << TestString; \ in TEST_F() 175 ASSERT_EQ(Value, test.Dst##Suffix()) << TestString; \ in TEST_F() 179 #define TestImpl(Dst, Src) \ in TEST_F() argument 181 TestRegReg(Dst, Src, l, 8); \ in TEST_F() 182 TestRegReg(Dst, Src, w, 16); \ in TEST_F() 183 TestRegReg(Dst, Src, d, 32); \ in TEST_F() [all …]
|
D | GPRArith.cpp | 112 #define TestLeaBaseDisp(Base, BaseValue, Disp, Dst) \ in TEST_F() argument 115 "(" #Base ", " #BaseValue ", " #Dst ")"; \ in TEST_F() 120 __ lea(IceType_i32, Encoded_GPR_##Dst(), \ in TEST_F() 124 ASSERT_EQ(test.Base##d() + (Disp), test.Dst##d()) \ in TEST_F() 327 #define TestLeaAbsolute(Dst, Value) \ in TEST_F() argument 329 static constexpr char TestString[] = "(" #Dst ", " #Value ")"; \ in TEST_F() 330 __ lea(IceType_i32, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 336 /*mod*/ 0x00 | /*reg*/ (GPRRegister::Encoded_Reg_##Dst << 3) | \ in TEST_F() 362 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument 366 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F() [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
D | XmmArith.cpp | 17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument 22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ in TEST_F() 31 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F() 35 __ Inst(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F() 49 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F() 53 #define TestArithSSXmmAddr(FloatSize, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument 58 "(" #FloatSize ", Addr, " #Value0 ", " #Dst ", " #Value1 ", " #Inst \ in TEST_F() 67 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F() 69 __ Inst(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ in TEST_F() 83 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ in TEST_F() [all …]
|
D | DataMov.cpp | 177 #define TestMovzx8bitWithRegDest(Src, Dst, Imm) \ in TEST_F() argument 181 __ movzx(IceType_i8, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 185 ASSERT_EQ(Imm, test.Dst()) << "(" #Src ", " #Dst ", " #Imm ")"; \ in TEST_F() 189 #define TestMovzx16bitWithRegDest(Src, Dst, Imm) \ in TEST_F() argument 193 __ movzx(IceType_i16, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 197 ASSERT_EQ(Imm, test.Dst()) << "(" #Src ", " #Dst ", " #Imm ")"; \ in TEST_F() 201 #define TestMovzx8bitWithAddrSrc(Dst, Imm) \ in TEST_F() argument 206 __ movzx(IceType_i8, GPRRegister::Encoded_Reg_##Dst, dwordAddress(T0)); \ in TEST_F() 210 ASSERT_EQ(Imm, test.Dst()) << "(Addr, " #Dst ", " #Imm ")"; \ in TEST_F() 214 #define TestMovzx16bitWithAddrSrc(Dst, Imm) \ in TEST_F() argument [all …]
|
D | GPRArith.cpp | 124 #define TestLeaBaseDisp(Base, BaseValue, Disp, Dst) \ in TEST_F() argument 127 "(" #Base ", " #BaseValue ", " #Dst ")"; \ in TEST_F() 133 __ lea(IceType_i32, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 138 ASSERT_EQ(test.Base() + (Disp), test.Dst()) << TestString << " with Disp " \ in TEST_F() 294 #define TestLeaAbsolute(Dst, Value) \ in TEST_F() argument 296 static constexpr char TestString[] = "(" #Dst ", " #Value ")"; \ in TEST_F() 297 __ lea(IceType_i32, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 303 /*mod=*/0x00 | /*reg*/ (GPRRegister::Encoded_Reg_##Dst << 3) | \ in TEST_F() 326 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument 330 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F() [all …]
|
/external/v8/src/base/ |
D | safe_conversions_impl.h | 50 typename Dst, 52 IntegerRepresentation DstSign = std::numeric_limits<Dst>::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> 74 struct StaticDstRangeRelationToSrcRange<Dst, 79 MaxExponent<Dst>::value > MaxExponent<Src>::value 85 template <typename Dst, typename Src> 86 struct StaticDstRangeRelationToSrcRange<Dst, [all …]
|
D | safe_conversions.h | 20 template <typename Dst, typename Src> 22 return internal::DstRangeRelationToSrcRange<Dst>(value) == in IsValueInRangeForNumericType() 29 template <typename Dst, typename Src> 30 inline Dst checked_cast(Src value) { in checked_cast() 31 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast() 32 return static_cast<Dst>(value); in checked_cast() 38 template <typename Dst, typename Src> 39 inline Dst saturated_cast(Src value) { in saturated_cast() 41 if (std::numeric_limits<Dst>::is_iec559) in saturated_cast() 42 return static_cast<Dst>(value); in saturated_cast() [all …]
|
/external/webrtc/webrtc/base/ |
D | safe_conversions_impl.h | 39 template <typename Dst, typename Src, 40 DstSign IsDstSigned = std::numeric_limits<Dst>::is_signed ? 46 template <typename Dst, typename Src> 47 struct StaticRangeCheck<Dst, Src, DST_SIGNED, SRC_SIGNED> { 48 typedef std::numeric_limits<Dst> DstLimits; 53 (sizeof(Dst) * 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 …]
|
D | safe_conversions.h | 25 template <typename Dst, typename Src> 27 return internal::RangeCheck<Dst>(value) == internal::TYPE_VALID; in IsValueInRangeForNumericType() 33 template <typename Dst, typename Src> 34 inline Dst checked_cast(Src value) { in checked_cast() 35 RTC_CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast() 36 return static_cast<Dst>(value); in checked_cast() 42 template <typename Dst, typename Src> 43 inline Dst saturated_cast(Src value) { in saturated_cast() 45 if (std::numeric_limits<Dst>::is_iec559) in saturated_cast() 46 return static_cast<Dst>(value); in saturated_cast() [all …]
|
/external/pdfium/third_party/base/numerics/ |
D | safe_conversions.h | 53 template <typename Dst, typename Src> 55 return internal::DstRangeRelationToSrcRange<Dst>(value).IsValid(); in IsValueInRangeForNumericType() 74 template <typename Dst, class CheckHandler = CheckOnFailure, typename Src> 75 constexpr Dst checked_cast(Src value) { in checked_cast() 79 return IsValueInRangeForNumericType<Dst, SrcType>(value) in checked_cast() 80 ? static_cast<Dst>(static_cast<SrcType>(value)) in checked_cast() 81 : CheckHandler::template HandleFailure<Dst>(); 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() 113 ? (!constraint.IsUnderflowFlagSet() ? static_cast<Dst>(value) in saturated_cast_impl() [all …]
|
D | safe_conversions_impl.h | 98 template <typename Dst, 100 IntegerRepresentation DstSign = std::is_signed<Dst>::value 110 template <typename Dst, typename Src, IntegerRepresentation Sign> 111 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 113 MaxExponent<Dst>::value >= MaxExponent<Src>::value 120 template <typename Dst, typename Src> 121 struct StaticDstRangeRelationToSrcRange<Dst, 126 MaxExponent<Dst>::value > MaxExponent<Src>::value 132 template <typename Dst, typename Src> 133 struct StaticDstRangeRelationToSrcRange<Dst, [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExprEngine.h | 118 ExplodedNodeSet &Dst) { in ExecuteWorkListWithInitialState() argument 119 return Engine.ExecuteWorkListWithInitialState(L, Steps, InitState, Dst); in ExecuteWorkListWithInitialState() 206 ExplodedNode *Pred, ExplodedNodeSet &Dst); 208 ExplodedNode *Pred, ExplodedNodeSet &Dst); 210 ExplodedNode *Pred, ExplodedNodeSet &Dst); 212 ExplodedNode *Pred, ExplodedNodeSet &Dst); 214 ExplodedNode *Pred, ExplodedNodeSet &Dst); 226 ExplodedNodeSet &Dst, 235 ExplodedNode *Pred, ExplodedNodeSet &Dst, 244 ExplodedNodeSet &Dst, [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-c-test/ |
D | echo.cpp | 158 static ValueMap clone_params(LLVMValueRef Src, LLVMValueRef Dst) { in clone_params() argument 160 if (Count != LLVMCountParams(Dst)) in clone_params() 168 LLVMValueRef DstFirst = LLVMGetFirstParam(Dst); in clone_params() 170 LLVMValueRef DstLast = LLVMGetLastParam(Dst); in clone_params() 242 LLVMValueRef Dst = LLVMGetNamedFunction(M, Name); in clone_constant_impl() local 243 if (Dst) in clone_constant_impl() 244 return Dst; in clone_constant_impl() 251 LLVMValueRef Dst = LLVMGetNamedGlobal(M, Name); in clone_constant_impl() local 252 if (Dst) in clone_constant_impl() 253 return Dst; in clone_constant_impl() [all …]
|
/external/llvm/tools/llvm-c-test/ |
D | echo.cpp | 157 static ValueMap clone_params(LLVMValueRef Src, LLVMValueRef Dst) { in clone_params() argument 159 if (Count != LLVMCountParams(Dst)) in clone_params() 167 LLVMValueRef DstFirst = LLVMGetFirstParam(Dst); in clone_params() 169 LLVMValueRef DstLast = LLVMGetLastParam(Dst); in clone_params() 239 LLVMValueRef Dst = LLVMGetNamedFunction(M, Name); in clone_constant_impl() local 240 if (Dst) in clone_constant_impl() 241 return Dst; in clone_constant_impl() 248 LLVMValueRef Dst = LLVMGetNamedGlobal(M, Name); in clone_constant_impl() local 249 if (Dst) in clone_constant_impl() 250 return Dst; in clone_constant_impl() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngine.cpp | 443 ExplodedNodeSet Dst; in ProcessStmt() local 449 Dst.insert(DstI); in ProcessStmt() 453 Engine.enqueue(Dst, currBldrCtx->getBlock(), currStmtIdx); in ProcessStmt() 533 ExplodedNodeSet Dst; in ProcessInitializer() local 534 NodeBuilder Bldr(Tmp, Dst, *currBldrCtx); in ProcessInitializer() 541 Engine.enqueue(Dst, currBldrCtx->getBlock(), currStmtIdx); in ProcessInitializer() 546 ExplodedNodeSet Dst; in ProcessImplicitDtor() local 549 ProcessAutomaticObjDtor(D.castAs<CFGAutomaticObjDtor>(), Pred, Dst); in ProcessImplicitDtor() 552 ProcessBaseDtor(D.castAs<CFGBaseDtor>(), Pred, Dst); in ProcessImplicitDtor() 555 ProcessMemberDtor(D.castAs<CFGMemberDtor>(), Pred, Dst); in ProcessImplicitDtor() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonSubtarget.cpp | 320 void HexagonSubtarget::adjustSchedDependency(SUnit *Src, SUnit *Dst, in adjustSchedDependency() argument 323 MachineInstr *DstInst = Dst->getInstr(); in adjustSchedDependency() 324 if (!Src->isInstr() || !Dst->isInstr()) in adjustSchedDependency() 333 isBestZeroLatency(Src, Dst, QII, ExclSrc, ExclDst)) { in adjustSchedDependency() 347 if ((DstInst->isRegSequence() || DstInst->isCopy()) && Dst->NumSuccs == 1) { in adjustSchedDependency() 349 MachineInstr *DDst = Dst->Succs[0].getSUnit()->getInstr(); in adjustSchedDependency() 368 isBestZeroLatency(Src, Dst, QII, ExclSrc, ExclDst)) { in adjustSchedDependency() 419 void HexagonSubtarget::restoreLatency(SUnit *Src, SUnit *Dst) const { in restoreLatency() 422 if (!I.isAssignedRegDep() || I.getSUnit() != Dst) in restoreLatency() 432 MachineInstr *DstI = Dst->getInstr(); in restoreLatency() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonPeephole.cpp | 105 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src); 140 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 142 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 158 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 163 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 175 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 180 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 189 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local 191 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 207 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction() local [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_optimize.c | 245 copy_dst_reg(&o->Dst[0].Register, &i->Dst[0].Register); in copy_instruction() 318 dst_reg = ¤t->FullInstruction.Dst[0]; in liveness_analysis() 413 same_src_dst_reg(&next->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_before_tex() 415 unused_from(ctx, ¤t->FullInstruction.Dst[0], index)) in i915_fpc_optimize_mov_before_tex() 441 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_mov() 443 !same_src_dst_reg(¤t->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) ) in i915_fpc_optimize_mov_after_mov() 446 dst_reg1 = ¤t->FullInstruction.Dst[0]; in i915_fpc_optimize_mov_after_mov() 448 dst_reg2 = &next->FullInstruction.Dst[0]; in i915_fpc_optimize_mov_after_mov() 493 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_alu() 495 !same_src_dst_reg(&next->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_alu() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | MachineBranchProbabilityInfo.cpp | 45 MachineBasicBlock::const_succ_iterator Dst) const { in getEdgeProbability() 46 return Src->getSuccProbability(Dst); in getEdgeProbability() 50 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() 53 return getEdgeProbability(Src, find(Src->successors(), Dst)); in getEdgeProbability() 57 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in isEdgeHot() 59 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot() 84 const MachineBasicBlock *Dst) const { in printEdgeProbability() 86 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() 87 OS << "edge " << printMBBReference(*Src) << " -> " << printMBBReference(*Dst) in printEdgeProbability() 89 << (isEdgeHot(Src, Dst) ? " [HOT edge]\n" : "\n"); in printEdgeProbability()
|
/external/llvm/lib/CodeGen/ |
D | MachineBranchProbabilityInfo.cpp | 45 MachineBasicBlock::const_succ_iterator Dst) const { in getEdgeProbability() 46 return Src->getSuccProbability(Dst); in getEdgeProbability() 50 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() 54 std::find(Src->succ_begin(), Src->succ_end(), Dst)); in getEdgeProbability() 58 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in isEdgeHot() 60 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot() 85 const MachineBasicBlock *Dst) const { in printEdgeProbability() 87 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() 88 OS << "edge MBB#" << Src->getNumber() << " -> MBB#" << Dst->getNumber() in printEdgeProbability() 90 << (isEdgeHot(Src, Dst) ? " [HOT edge]\n" : "\n"); in printEdgeProbability()
|