/external/pdfium/third_party/base/numerics/ |
D | safe_conversions_impl.h | 48 typename Src, 53 std::numeric_limits<Src>::is_signed 60 template <typename Dst, typename Src, IntegerRepresentation Sign> 61 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 63 MaxExponent<Dst>::value >= MaxExponent<Src>::value 70 template <typename Dst, typename Src> 72 Src, 76 MaxExponent<Dst>::value > MaxExponent<Src>::value 82 template <typename Dst, typename Src> 84 Src, [all …]
|
D | safe_math.h | 52 template <typename Src> 53 CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric() 56 template <typename Src> 57 CheckedNumeric(Src value, RangeConstraint validity) in CheckedNumeric() 62 template <typename Src> 63 CheckedNumeric(Src value) in CheckedNumeric() 65 COMPILE_ASSERT(std::numeric_limits<Src>::is_specialized, in CheckedNumeric() 113 template <typename Src> CheckedNumeric& operator+=(Src rhs); 114 template <typename Src> CheckedNumeric& operator-=(Src rhs); 115 template <typename Src> CheckedNumeric& operator*=(Src rhs); [all …]
|
D | safe_conversions.h | 18 template <typename Dst, typename Src> 19 inline bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() 27 template <typename Dst, typename Src> 28 inline Dst checked_cast(Src value) { in checked_cast() 36 template <typename Dst, typename Src> 37 inline Dst saturated_cast(Src value) { in saturated_cast()
|
/external/v8/src/base/ |
D | safe_conversions_impl.h | 51 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 …]
|
D | safe_math.h | 55 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 …]
|
D | safe_conversions.h | 20 template <typename Dst, typename Src> 21 inline bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() 29 template <typename Dst, typename Src> 30 inline Dst checked_cast(Src value) { in checked_cast() 38 template <typename Dst, typename Src> 39 inline Dst saturated_cast(Src value) { in saturated_cast()
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_program_pair.c | 53 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 …]
|
D | radeon_pair_dead_sources.c | 9 if (sub->Src[RC_PAIR_PRESUB_SRC].Used) { in mark_used_presub() 11 sub->Src[RC_PAIR_PRESUB_SRC].Index); in mark_used_presub() 14 sub->Src[i].Used = 1; in mark_used_presub() 28 inst->U.P.RGB.Src[sub->Arg[i].Source].Used = 1; in mark_used() 32 inst->U.P.Alpha.Src[sub->Arg[i].Source].Used = 1; in mark_used() 53 inst->U.P.RGB.Src[i].Used = 0; in rc_pair_remove_dead_sources() 54 inst->U.P.Alpha.Src[i].Used = 0; in rc_pair_remove_dead_sources()
|
D | radeon_variable.c | 77 reader->U.I.Src->Index = new_index; in rc_variable_change_dst() 78 reader->U.I.Src->Swizzle = rc_rewrite_swizzle( in rc_variable_change_dst() 79 reader->U.I.Src->Swizzle, conversion_swizzle); in rc_variable_change_dst() 89 pair_inst, reader->U.P.Src); in rc_variable_change_dst() 103 pair_inst->RGB.Src[src_index] in rc_variable_change_dst() 105 pair_inst->RGB.Src[src_index] in rc_variable_change_dst() 107 pair_inst->RGB.Src[src_index] in rc_variable_change_dst() 111 pair_inst->Alpha.Src[src_index] in rc_variable_change_dst() 113 pair_inst->Alpha.Src[src_index] in rc_variable_change_dst() 115 pair_inst->Alpha.Src[src_index] in rc_variable_change_dst() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_aapoint.c | 247 newInst.Src[0].Register.File = TGSI_FILE_INPUT; in aa_transform_inst() 248 newInst.Src[0].Register.Index = texInput; in aa_transform_inst() 249 newInst.Src[1].Register.File = TGSI_FILE_INPUT; in aa_transform_inst() 250 newInst.Src[1].Register.Index = texInput; in aa_transform_inst() 261 newInst.Src[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 262 newInst.Src[0].Register.Index = tmp0; in aa_transform_inst() 263 newInst.Src[0].Register.SwizzleX = TGSI_SWIZZLE_X; in aa_transform_inst() 264 newInst.Src[1].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 265 newInst.Src[1].Register.Index = tmp0; in aa_transform_inst() 266 newInst.Src[1].Register.SwizzleX = TGSI_SWIZZLE_Y; in aa_transform_inst() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineBranchProbabilityInfo.cpp | 64 getEdgeWeight(const MachineBasicBlock *Src, in getEdgeWeight() argument 66 uint32_t Weight = Src->getSuccWeight(Dst); in getEdgeWeight() 73 getEdgeWeight(const MachineBasicBlock *Src, in getEdgeWeight() argument 77 return getEdgeWeight(Src, std::find(Src->succ_begin(), Src->succ_end(), Dst)); in getEdgeWeight() 81 MachineBranchProbabilityInfo::isEdgeHot(const MachineBasicBlock *Src, in isEdgeHot() argument 85 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot() 108 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() argument 110 uint32_t D = getSumForBlock(Src, Scale); in getEdgeProbability() 111 uint32_t N = getEdgeWeight(Src, Dst) / Scale; in getEdgeProbability() 117 raw_ostream &OS, const MachineBasicBlock *Src, in printEdgeProbability() argument [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonPeephole.cpp | 104 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src); 139 MachineOperand &Src = MI->getOperand(1); in runOnMachineFunction() local 141 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() 304 void HexagonPeephole::ChangeOpInto(MachineOperand &Dst, MachineOperand &Src) { in ChangeOpInto() argument 305 assert (&Dst != &Src && "Cannot duplicate into itself"); in ChangeOpInto() [all …]
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | CloneSubModule.cpp | 31 void CloneSubModule(llvm::Module &Dst, const Module &Src, in CloneSubModule() argument 38 Dst.appendModuleInlineAsm(Src.getModuleInlineAsm()); in CloneSubModule() 41 for (Module::const_global_iterator I = Src.global_begin(), E = Src.global_end(); in CloneSubModule() 52 for (Module::const_iterator I = Src.begin(), E = Src.end(); I != E; ++I) { in CloneSubModule() 61 for (Module::const_alias_iterator I = Src.alias_begin(), E = Src.alias_end(); in CloneSubModule() 74 for (Module::const_global_iterator I = Src.global_begin(), E = Src.global_end(); in CloneSubModule() 82 for (Module::const_iterator I = Src.begin(), E = Src.end(); I != E; ++I) { in CloneSubModule() 88 for (Module::const_alias_iterator I = Src.alias_begin(), E = Src.alias_end(); in CloneSubModule() 96 for (Module::const_named_metadata_iterator I = Src.named_metadata_begin(), in CloneSubModule() 97 E = Src.named_metadata_end(); in CloneSubModule()
|
/external/skia/dm/ |
D | DMSrcSink.h | 56 struct Src { struct 58 virtual ~Src() {} in ~Src() argument 67 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log) 81 class GMSrc : public Src { 92 class CodecSrc : public Src { 115 class ImageSrc : public Src { 129 class SKPSrc : public Src { 146 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override; 156 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 171 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_optimize.c | 178 copy_src_reg(&o->Src[0].Register, &i->Src[0].Register); in copy_instruction() 179 copy_src_reg(&o->Src[1].Register, &i->Src[1].Register); in copy_instruction() 180 copy_src_reg(&o->Src[2].Register, &i->Src[2].Register); in copy_instruction() 208 same_src_reg(&next->FullInstruction.Src[0], ¤t->FullInstruction.Src[1]) && in i915_fpc_optimize_mov_after_alu() 209 !same_src_dst_reg(&next->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_alu() 210 …is_unswizzled(¤t->FullInstruction.Src[0], current->FullInstruction.Dst[0].Register.WriteMask… in i915_fpc_optimize_mov_after_alu() 211 …is_unswizzled(¤t->FullInstruction.Src[1], current->FullInstruction.Dst[0].Register.WriteMask… in i915_fpc_optimize_mov_after_alu() 212 … is_unswizzled(&next->FullInstruction.Src[0], next->FullInstruction.Dst[0].Register.WriteMask) ) in i915_fpc_optimize_mov_after_alu() 216 set_neutral_element_swizzle(¤t->FullInstruction.Src[1], 0, 0); in i915_fpc_optimize_mov_after_alu() 217 set_neutral_element_swizzle(¤t->FullInstruction.Src[0], in i915_fpc_optimize_mov_after_alu() [all …]
|
D | i915_fpc_translate.c | 419 uint unit = inst->Src[1].Register.Index; in emit_tex() 422 uint coord = src_vector( p, &inst->Src[0], fs); in emit_tex() 449 arg1 = (numArgs < 1) ? 0 : src_vector( p, &inst->Src[0], fs ); in emit_simple_arith() 450 arg2 = (numArgs < 2) ? 0 : src_vector( p, &inst->Src[1], fs ); in emit_simple_arith() 451 arg3 = (numArgs < 3) ? 0 : src_vector( p, &inst->Src[2], fs ); in emit_simple_arith() 476 inst2.Src[0] = inst->Src[1]; in emit_simple_arith_swap2() 477 inst2.Src[1] = inst->Src[0]; in emit_simple_arith_swap2() 503 src0 = src_vector(p, &inst->Src[0], fs); in i915_translate_instruction() 516 src0 = src_vector(p, &inst->Src[0], fs); in i915_translate_instruction() 532 src0 = src_vector(p, &inst->Src[0], fs); in i915_translate_instruction() [all …]
|
/external/libvpx/libvpx/vp8/common/ |
D | common.h | 30 #define vp8_copy( Dest, Src) { \ argument 31 assert( sizeof( Dest) == sizeof( Src)); \ 32 memcpy( Dest, Src, sizeof( Src)); \ 37 #define vp8_copy_array( Dest, Src, N) { \ argument 38 assert( sizeof( *Dest) == sizeof( *Src)); \ 39 memcpy( Dest, Src, N * sizeof( *Src)); \
|
/external/llvm/include/llvm/Analysis/ |
D | BranchProbabilityInfo.h | 58 BranchProbability getEdgeProbability(const BasicBlock *Src, 64 BranchProbability getEdgeProbability(const BasicBlock *Src, 71 bool isEdgeHot(const BasicBlock *Src, const BasicBlock *Dst) const; 84 raw_ostream &printEdgeProbability(raw_ostream &OS, const BasicBlock *Src, 93 uint32_t getEdgeWeight(const BasicBlock *Src, 100 uint32_t getEdgeWeight(const BasicBlock *Src, const BasicBlock *Dst) const; 102 uint32_t getEdgeWeight(const BasicBlock *Src, 111 void setEdgeWeight(const BasicBlock *Src, unsigned IndexInSuccessors,
|
D | DependenceAnalysis.h | 74 Src(Source), in Dependence() 104 Instruction *getSrc() const { return Src; } in getSrc() 204 Instruction *Src, *Dst; 220 FullDependence(Instruction *Src, Instruction *Dst, bool LoopIndependent, 287 std::unique_ptr<Dependence> depends(Instruction *Src, 343 const SCEV *Src; member 506 void establishNestingLevels(const Instruction *Src, 543 bool checkSrcSubscript(const SCEV *Src, 576 Subscript::ClassificationKind classifyPair(const SCEV *Src, 587 bool testZIV(const SCEV *Src, [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZSelectionDAGInfo.cpp | 34 SDValue Src, uint64_t Size) { in emitMemMem() argument 35 EVT PtrVT = Src.getValueType(); in emitMemMem() 48 return DAG.getNode(Loop, DL, MVT::Other, Chain, Dst, Src, in emitMemMem() 51 return DAG.getNode(Sequence, DL, MVT::Other, Chain, Dst, Src, in emitMemMem() 57 SDValue Dst, SDValue Src, SDValue Size, unsigned Align, in EmitTargetCodeForMemcpy() argument 66 Chain, Dst, Src, CSize->getZExtValue()); in EmitTargetCodeForMemcpy() 208 SDValue Src, SDValue Char, SDValue Length, in EmitTargetCodeForMemchr() argument 211 EVT PtrVT = Src.getValueType(); in EmitTargetCodeForMemchr() 217 SDValue Limit = DAG.getNode(ISD::ADD, DL, PtrVT, Src, Length); in EmitTargetCodeForMemchr() 219 Limit, Src, Char); in EmitTargetCodeForMemchr() [all …]
|
/external/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 196 return Src->mayReadFromMemory() && Dst->mayReadFromMemory(); in isInput() 202 return Src->mayWriteToMemory() && Dst->mayWriteToMemory(); in isOutput() 208 return Src->mayWriteToMemory() && Dst->mayReadFromMemory(); in isFlow() 214 return Src->mayReadFromMemory() && Dst->mayWriteToMemory(); in isAnti() 712 void DependenceAnalysis::establishNestingLevels(const Instruction *Src, in establishNestingLevels() argument 714 const BasicBlock *SrcBlock = Src->getParent(); in establishNestingLevels() 783 const SCEV *Src = Pair->Src; in unifySubscriptType() local 785 IntegerType *SrcTy = dyn_cast<IntegerType>(Src->getType()); in unifySubscriptType() 798 Pair->Src = SE->getSignExtendExpr(Src, DstTy); in unifySubscriptType() 807 const SCEV *Src = Pair->Src; in removeMatchingExtensions() local [all …]
|
D | BranchProbabilityInfo.cpp | 563 isEdgeHot(const BasicBlock *Src, const BasicBlock *Dst) const { in isEdgeHot() argument 566 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot() 599 getEdgeWeight(const BasicBlock *Src, unsigned IndexInSuccessors) const { in getEdgeWeight() argument 601 Weights.find(std::make_pair(Src, IndexInSuccessors)); in getEdgeWeight() 609 uint32_t BranchProbabilityInfo::getEdgeWeight(const BasicBlock *Src, in getEdgeWeight() argument 611 return getEdgeWeight(Src, Dst.getSuccessorIndex()); in getEdgeWeight() 617 getEdgeWeight(const BasicBlock *Src, const BasicBlock *Dst) const { in getEdgeWeight() argument 620 for (succ_const_iterator I = succ_begin(Src), E = succ_end(Src); I != E; ++I) in getEdgeWeight() 622 MapI = Weights.find(std::make_pair(Src, I.getSuccessorIndex())); in getEdgeWeight() 632 setEdgeWeight(const BasicBlock *Src, unsigned IndexInSuccessors, in setEdgeWeight() argument [all …]
|
/external/llvm/lib/Support/ |
D | ConvertUTFWrapper.cpp | 95 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String() local 100 if (Src[0] == UNI_UTF16_BYTE_ORDER_MARK_SWAPPED) { in convertUTF16ToUTF8String() 101 ByteSwapped.insert(ByteSwapped.end(), Src, SrcEnd); in convertUTF16ToUTF8String() 104 Src = &ByteSwapped[0]; in convertUTF16ToUTF8String() 109 if (Src[0] == UNI_UTF16_BYTE_ORDER_MARK_NATIVE) in convertUTF16ToUTF8String() 110 Src++; in convertUTF16ToUTF8String() 119 ConvertUTF16toUTF8(&Src, SrcEnd, &Dst, DstEnd, strictConversion); in convertUTF16ToUTF8String() 144 const UTF8 *Src = reinterpret_cast<const UTF8 *>(SrcUTF8.begin()); in convertUTF8ToUTF16String() local 157 ConvertUTF8toUTF16(&Src, SrcEnd, &Dst, DstEnd, strictConversion); in convertUTF8ToUTF16String()
|
/external/clang/include/clang/StaticAnalyzer/Core/ |
D | CheckerManager.h | 184 const ExplodedNodeSet &Src, in runCheckersForPreStmt() argument 187 runCheckersForStmt(/*isPreVisit=*/true, Dst, Src, S, Eng); in runCheckersForPreStmt() 197 const ExplodedNodeSet &Src, 201 runCheckersForStmt(/*isPreVisit=*/false, Dst, Src, S, Eng, wasInlined); 206 ExplodedNodeSet &Dst, const ExplodedNodeSet &Src, 212 const ExplodedNodeSet &Src, in runCheckersForPreObjCMessage() argument 215 runCheckersForObjCMessage(/*isPreVisit=*/true, Dst, Src, msg, Eng); in runCheckersForPreObjCMessage() 220 const ExplodedNodeSet &Src, 224 runCheckersForObjCMessage(/*isPreVisit=*/false, Dst, Src, msg, Eng, 231 const ExplodedNodeSet &Src, [all …]
|
/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 438 const GlobalValue &Src); 453 Comdat::SelectionKind Src, 497 void linkGlobalInit(GlobalVariable &Dst, GlobalVariable &Src); 498 bool linkFunctionBody(Function &Dst, Function &Src); 499 void linkAliasBody(GlobalAlias &Dst, GlobalAlias &Src); 500 bool linkGlobalValueBody(GlobalValue &Src); 636 Comdat::SelectionKind Src, in computeResultingSelectionKind() argument 644 bool SrcAnyOrLargest = Src == Comdat::SelectionKind::Any || in computeResultingSelectionKind() 645 Src == Comdat::SelectionKind::Largest; in computeResultingSelectionKind() 648 Src == Comdat::SelectionKind::Largest) in computeResultingSelectionKind() [all …]
|