/external/v8/src/base/ |
H A D | safe_conversions.h | 20 template <typename Dst, typename Src> 22 return internal::DstRangeRelationToSrcRange<Dst>(value) == 29 template <typename Dst, typename Src> 30 inline Dst checked_cast(Src value) { 31 CHECK(IsValueInRangeForNumericType<Dst>(value)); 32 return static_cast<Dst>(value); 38 template <typename Dst, typename Src> 39 inline Dst saturated_cast(Src value) { 41 if (std::numeric_limits<Dst>::is_iec559) 42 return static_cast<Dst>(valu [all...] |
H A D | safe_conversions_impl.h | 36 // A range for a given nunmeric Src type is contained for a given numeric Dst 37 // type if both numeric_limits<Src>::max() <= numeric_limits<Dst>::max() and 38 // numeric_limits<Src>::min() >= numeric_limits<Dst>::min() are true. 50 typename Dst, 52 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed 61 // Same sign: Dst is guaranteed to contain Src only if its range is equal or 63 template <typename Dst, typename Src, IntegerRepresentation Sign> 64 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 66 MaxExponent<Dst>::value >= MaxExponent<Src>::value 71 // Unsigned to signed: Dst i [all...] |
/external/webrtc/webrtc/base/ |
H A D | safe_conversions.h | 25 template <typename Dst, typename Src> 27 return internal::RangeCheck<Dst>(value) == internal::TYPE_VALID; 33 template <typename Dst, typename Src> 34 inline Dst checked_cast(Src value) { 35 RTC_CHECK(IsValueInRangeForNumericType<Dst>(value)); 36 return static_cast<Dst>(value); 42 template <typename Dst, typename Src> 43 inline Dst saturated_cast(Src value) { 45 if (std::numeric_limits<Dst>::is_iec559) 46 return static_cast<Dst>(valu [all...] |
H A 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, typenam [all...] |
/external/llvm/bindings/ocaml/linker/ |
H A D | linker_ocaml.c | 28 CAMLprim value llvm_link_modules(LLVMModuleRef Dst, LLVMModuleRef Src) { argument 29 if (LLVMLinkModules2(Dst, Src))
|
/external/libchrome/base/numerics/ |
H A D | safe_numerics_unittest.cc | 59 template <typename Dst, typename Src> 60 Dst GetMaxConvertibleToFloat() { 61 using DstLimits = numeric_limits<Dst>; 68 MaxExponent<Src>::value <= MaxExponent<Dst>::value) 71 while (max != static_cast<Src>(static_cast<Dst>(max))) { 74 return static_cast<Dst>(max); 150 EXPECT_EQ(expected, (actual).template Cast<Dst>().IsValid()) \ 169 template <typename Dst> 171 Dst dummy_value = 0; 172 Dst* dummy_pt [all...] |
H A D | safe_conversions.h | 52 template <typename Dst, typename Src> 54 return internal::DstRangeRelationToSrcRange<Dst>(value).IsValid(); 73 template <typename Dst, 76 constexpr Dst checked_cast(Src value) { 80 return IsValueInRangeForNumericType<Dst, SrcType>(value) 81 ? static_cast<Dst>(static_cast<SrcType>(value)) 82 : CheckHandler::template HandleFailure<Dst>(); 109 template <typename Dst, template <typename> class S, typename Src> 110 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) { 114 ? (!constraint.IsUnderflowFlagSet() ? static_cast<Dst>(valu [all...] |
/external/skia/src/jumper/ |
H A D | SkJumper_misc.h | 35 template <typename Dst, typename Src> 36 SI Dst bit_cast(const Src& src) { 37 static_assert(sizeof(Dst) == sizeof(Src), ""); 38 return unaligned_load<Dst>(&src); 41 template <typename Dst, typename Src> 42 SI Dst widen_cast(const Src& src) { 43 static_assert(sizeof(Dst) > sizeof(Src), ""); 44 Dst dst;
|
/external/skqp/src/jumper/ |
H A D | SkJumper_misc.h | 35 template <typename Dst, typename Src> 36 SI Dst bit_cast(const Src& src) { 37 static_assert(sizeof(Dst) == sizeof(Src), ""); 38 return unaligned_load<Dst>(&src); 41 template <typename Dst, typename Src> 42 SI Dst widen_cast(const Src& src) { 43 static_assert(sizeof(Dst) > sizeof(Src), ""); 44 Dst dst;
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
H A D | BranchProbabilityInfo.h | 56 uint32_t getEdgeWeight(const BasicBlock *Src, const BasicBlock *Dst) const; 59 void setEdgeWeight(const BasicBlock *Src, const BasicBlock *Dst, 63 bool isEdgeHot(const BasicBlock *Src, const BasicBlock *Dst) const; 72 const BasicBlock *Dst) const; 78 BasicBlock *Dst) const;
|
/external/pdfium/third_party/base/numerics/ |
H A D | safe_conversions.h | 53 template <typename Dst, typename Src> 55 return internal::DstRangeRelationToSrcRange<Dst>(value).IsValid(); 74 template <typename Dst, class CheckHandler = CheckOnFailure, typename Src> 75 constexpr Dst checked_cast(Src value) { 79 return IsValueInRangeForNumericType<Dst, SrcType>(value) 80 ? static_cast<Dst>(static_cast<SrcType>(value)) 81 : CheckHandler::template HandleFailure<Dst>(); 108 template <typename Dst, template <typename> class S, typename Src> 109 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) { 113 ? (!constraint.IsUnderflowFlagSet() ? static_cast<Dst>(valu [all...] |
/external/llvm/lib/CodeGen/ |
H A D | MachineBranchProbabilityInfo.cpp | 45 MachineBasicBlock::const_succ_iterator Dst) const { 46 return Src->getSuccProbability(Dst); 50 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { 54 std::find(Src->succ_begin(), Src->succ_end(), Dst)); 58 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { 60 return getEdgeProbability(Src, Dst) > HotProb; 85 const MachineBasicBlock *Dst) const { 87 const BranchProbability Prob = getEdgeProbability(Src, Dst); 88 OS << "edge MBB#" << Src->getNumber() << " -> MBB#" << Dst->getNumber() 90 << (isEdgeHot(Src, Dst) [all...] |
/external/swiftshader/third_party/subzero/unittest/AssemblerX8664/ |
H A D | ControlFlow.cpp | 39 #define TestImpl(Dst, Src0, Src1) \ 41 TestJ(o, Near, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ 42 TestJ(o, Far, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ 43 TestJ(no, Near, Dst, Src0, 0x1ul, Src1, 0x1ul); \ 44 TestJ(no, Far, Dst, Src0, 0x1ul, Src1, 0x1ul); \ 45 TestJ(b, Near, Dst, Src0, 0x1ul, Src1, 0x80000000ul); \ 46 TestJ(b, Far, Dst, Src0, 0x1ul, Src1, 0x80000000ul); \ 47 TestJ(ae, Near, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ 48 TestJ(ae, Far, Dst, Src0, 0x80000000ul, Src1, 0x1ul); \ 49 TestJ(e, Near, Dst, Src [all...] |
H A D | XmmArith.cpp | 17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ 22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ 31 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T0)); \ 33 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ 46 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ 50 #define TestArithSSXmmAddr(FloatSize, Value0, Dst, Value1, Inst, Op) \ 55 "(" #FloatSize ", Addr, " #Value0 ", " #Dst ", " #Value1 ", " #Inst \ 64 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T0)); \ 65 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), dwordAddress(T1)); \ 78 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Typ [all...] |
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
H A D | XmmArith.cpp | 17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ 22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ 31 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ 35 __ Inst(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ 49 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Type>()) << TestString; \ 53 #define TestArithSSXmmAddr(FloatSize, Value0, Dst, Value1, Inst, Op) \ 58 "(" #FloatSize ", Addr, " #Value0 ", " #Dst ", " #Value1 ", " #Inst \ 67 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ 69 __ Inst(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Dst, \ 83 ASSERT_DOUBLE_EQ(V0 Op V1, test.Dst<Typ [all...] |
H A D | DataMov.cpp | 177 #define TestMovzx8bitWithRegDest(Src, Dst, Imm) \ 181 __ movzx(IceType_i8, GPRRegister::Encoded_Reg_##Dst, \ 185 ASSERT_EQ(Imm, test.Dst()) << "(" #Src ", " #Dst ", " #Imm ")"; \ 189 #define TestMovzx16bitWithRegDest(Src, Dst, Imm) \ 193 __ movzx(IceType_i16, GPRRegister::Encoded_Reg_##Dst, \ 197 ASSERT_EQ(Imm, test.Dst()) << "(" #Src ", " #Dst ", " #Imm ")"; \ 201 #define TestMovzx8bitWithAddrSrc(Dst, Imm) \ 206 __ movzx(IceType_i8, GPRRegister::Encoded_Reg_##Dst, dwordAddres [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | MachineBranchProbabilityInfo.h | 50 const MachineBasicBlock *Dst) const; 56 MachineBasicBlock::const_succ_iterator Dst) const; 60 const MachineBasicBlock *Dst) const; 71 const MachineBasicBlock *Dst) const;
|
/external/llvm/include/llvm/Target/ |
H A D | CostTable.h | 46 MVT::SimpleValueType Dst; member in struct:llvm::TypeConversionCostTblEntry 55 int ISD, MVT Dst, MVT Src) { 59 Dst == Entry.Dst; 54 ConvertCostTableLookup(ArrayRef<TypeConversionCostTblEntry> Tbl, int ISD, MVT Dst, MVT Src) argument
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
H A D | MachineBranchProbabilityInfo.h | 54 uint32_t getEdgeWeight(MachineBasicBlock *Src, MachineBasicBlock *Dst) const; 57 bool isEdgeHot(MachineBasicBlock *Src, MachineBasicBlock *Dst) const; 66 MachineBasicBlock *Dst) const; 72 MachineBasicBlock *Dst) const;
|
/external/clang/include/clang/Analysis/Analyses/ |
H A D | CFGReachabilityAnalysis.h | 40 /// Returns true if the block 'Dst' can be reached from block 'Src'. 41 bool isReachable(const CFGBlock *Src, const CFGBlock *Dst); 44 void mapReachability(const CFGBlock *Dst);
|
/external/clang/lib/Analysis/ |
H A D | CFGReachabilityAnalysis.cpp | 26 const CFGBlock *Dst) { 28 const unsigned DstBlockID = Dst->getBlockID(); 32 mapReachability(Dst); 42 void CFGReverseBlockReachabilityAnalysis::mapReachability(const CFGBlock *Dst) { argument 46 ReachableSet &DstReachability = reachable[Dst->getBlockID()]; 51 worklist.push_back(Dst); 61 // Update reachability information for this node -> Dst 63 // Don't insert Dst -> Dst unless it was a predecessor of itself 25 isReachable(const CFGBlock *Src, const CFGBlock *Dst) argument
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
H A D | MachineBranchProbabilityInfo.cpp | 48 MachineBasicBlock *Dst) const { 49 uint32_t Weight = Src->getSuccWeight(Dst); 56 MachineBasicBlock *Dst) const { 58 uint32_t Weight = getEdgeWeight(Src, Dst); 96 MachineBasicBlock *Dst) const { 97 uint32_t N = getEdgeWeight(Src, Dst); 105 MachineBasicBlock *Dst) const { 107 const BranchProbability Prob = getEdgeProbability(Src, Dst); 108 OS << "edge MBB#" << Src->getNumber() << " -> MBB#" << Dst->getNumber() 110 << (isEdgeHot(Src, Dst) [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ExprEngine.h | 113 /// of the function are added into the Dst set, which represent the exit 118 ExplodedNodeSet &Dst) { 119 return Engine.ExecuteWorkListWithInitialState(L, Steps, InitState, Dst); 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, 116 ExecuteWorkListWithInitialState(const LocationContext *L, unsigned Steps, ProgramStateRef InitState, ExplodedNodeSet &Dst) argument [all...] |
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonPeephole.cpp | 105 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src); 140 MachineOperand &Dst = MI.getOperand(0); local 142 unsigned DstReg = Dst.getReg(); 158 MachineOperand &Dst = MI.getOperand(0); local 163 unsigned DstReg = Dst.getReg(); 175 MachineOperand &Dst = MI.getOperand(0); local 180 unsigned DstReg = Dst.getReg(); 189 MachineOperand &Dst = MI.getOperand(0); local 191 unsigned DstReg = Dst.getReg(); 207 MachineOperand &Dst local 300 ChangeOpInto(MachineOperand &Dst, MachineOperand &Src) argument [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
H A D | X86GenDAGISel.inc | 35 // Dst: (VMOVNTPSmr addr:iPTR:$dst, VR128:v4f32:$src)
40 // Dst: (VMOVNTDQmr addr:iPTR:$dst, VR128:v4f32:$src)
49 // Dst: (MOVNTPSmr addr:iPTR:$dst, VR128:v4f32:$src)
57 // Dst: (MOVNTDQmr addr:iPTR:$dst, VR128:v4f32:$src)
71 // Dst: (VMOVNTPDmr addr:iPTR:$dst, VR128:v2f64:$src)
76 // Dst: (VMOVNTDQ_64mr addr:iPTR:$dst, VR128:v2f64:$src)
86 // Dst: (MOVNTPDmr addr:iPTR:$dst, VR128:v2f64:$src)
91 // Dst: (MOVNTDQ_64mr addr:iPTR:$dst, VR128:v2f64:$src)
105 // Dst: (VMOVNTDQmr addr:iPTR:$dst, VR128:v2i64:$src)
113 // Dst [all...] |