/external/chromium_org/base/numerics/ |
D | safe_numerics_unittest.cc | 46 EXPECT_EQ(expected, CheckedNumeric<Dst>(actual).validity()) \ 51 EXPECT_EQ(static_cast<Dst>(expected), \ 52 CheckedNumeric<Dst>(actual).ValueUnsafe()) \ 57 template <typename Dst> 62 numeric_limits<Dst>::is_integer&& numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic() 64 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic() 66 -CheckedNumeric<Dst>(DstLimits::min())); in TestSpecializedArithmetic() 68 CheckedNumeric<Dst>(DstLimits::min()).Abs()); in TestSpecializedArithmetic() 69 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(-1).Abs()); in TestSpecializedArithmetic() 72 CheckedNumeric<Dst>(DstLimits::max()) + -1); in TestSpecializedArithmetic() [all …]
|
D | safe_conversions_impl.h | 46 typename Dst, 48 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed 59 template <typename Dst, typename Src, IntegerRepresentation Sign> 60 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 62 MaxExponent<Dst>::value >= MaxExponent<Src>::value 69 template <typename Dst, typename Src> 70 struct StaticDstRangeRelationToSrcRange<Dst, 75 MaxExponent<Dst>::value > MaxExponent<Src>::value 81 template <typename Dst, typename Src> 82 struct StaticDstRangeRelationToSrcRange<Dst, [all …]
|
D | safe_conversions.h | 17 template <typename Dst, typename Src> 19 return internal::DstRangeRelationToSrcRange<Dst>(value) == in IsValueInRangeForNumericType() 26 template <typename Dst, typename Src> 27 inline Dst checked_cast(Src value) { in checked_cast() 28 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast() 29 return static_cast<Dst>(value); in checked_cast() 35 template <typename Dst, typename Src> 36 inline Dst saturated_cast(Src value) { in saturated_cast() 38 if (std::numeric_limits<Dst>::is_iec559) in saturated_cast() 39 return static_cast<Dst>(value); in saturated_cast() [all …]
|
/external/chromium_org/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/chromium_org/third_party/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 | 34 template <typename Dst, typename Src> 36 return internal::RangeCheck<Dst>(value) == internal::TYPE_VALID; in IsValueInRangeForNumericType() 42 template <typename Dst, typename Src> 43 inline Dst checked_cast(Src value) { in checked_cast() 44 Check(IsValueInRangeForNumericType<Dst>(value)); in checked_cast() 45 return static_cast<Dst>(value); in checked_cast() 51 template <typename Dst, typename Src> 52 inline Dst saturated_cast(Src value) { in saturated_cast() 54 if (std::numeric_limits<Dst>::is_iec559) in saturated_cast() 55 return static_cast<Dst>(value); in saturated_cast() [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 ExplodedNodeSet &Dst, 255 ExplodedNodeSet &Dst); [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_optimize.c | 176 copy_dst_reg(&o->Dst[0].Register, &i->Dst[0].Register); in copy_instruction() 207 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && 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() 218 next->FullInstruction.Dst[0].Register.WriteMask, in i915_fpc_optimize_mov_after_alu() 221 …current->FullInstruction.Dst[0].Register.WriteMask = current->FullInstruction.Dst[0].Register.Writ… in i915_fpc_optimize_mov_after_alu() 222 … next->FullInstruction.Dst[0].Register.WriteMask; in i915_fpc_optimize_mov_after_alu() 231 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_alu() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
D | i915_fpc_optimize.c | 176 copy_dst_reg(&o->Dst[0].Register, &i->Dst[0].Register); in copy_instruction() 207 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && 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() 218 next->FullInstruction.Dst[0].Register.WriteMask, in i915_fpc_optimize_mov_after_alu() 221 …current->FullInstruction.Dst[0].Register.WriteMask = current->FullInstruction.Dst[0].Register.Writ… in i915_fpc_optimize_mov_after_alu() 222 … next->FullInstruction.Dst[0].Register.WriteMask; in i915_fpc_optimize_mov_after_alu() 231 same_dst_reg(&next->FullInstruction.Dst[0], ¤t->FullInstruction.Dst[0]) && in i915_fpc_optimize_mov_after_alu() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineBranchProbabilityInfo.cpp | 65 MachineBasicBlock::const_succ_iterator Dst) const { in getEdgeWeight() 66 uint32_t Weight = Src->getSuccWeight(Dst); in getEdgeWeight() 74 const MachineBasicBlock *Dst) const { in getEdgeWeight() 77 return getEdgeWeight(Src, std::find(Src->succ_begin(), Src->succ_end(), Dst)); in getEdgeWeight() 82 const MachineBasicBlock *Dst) const { in isEdgeHot() 85 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot() 108 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() 111 uint32_t N = getEdgeWeight(Src, Dst) / Scale; in getEdgeProbability() 118 const MachineBasicBlock *Dst) const { in printEdgeProbability() 120 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngine.cpp | 432 ExplodedNodeSet Dst; in ProcessStmt() local 438 Dst.insert(DstI); in ProcessStmt() 442 Engine.enqueue(Dst, currBldrCtx->getBlock(), currStmtIdx); in ProcessStmt() 518 ExplodedNodeSet Dst; in ProcessInitializer() local 519 NodeBuilder Bldr(Tmp, Dst, *currBldrCtx); in ProcessInitializer() 526 Engine.enqueue(Dst, currBldrCtx->getBlock(), currStmtIdx); in ProcessInitializer() 531 ExplodedNodeSet Dst; in ProcessImplicitDtor() local 534 ProcessAutomaticObjDtor(D.castAs<CFGAutomaticObjDtor>(), Pred, Dst); in ProcessImplicitDtor() 537 ProcessBaseDtor(D.castAs<CFGBaseDtor>(), Pred, Dst); in ProcessImplicitDtor() 540 ProcessMemberDtor(D.castAs<CFGMemberDtor>(), Pred, Dst); in ProcessImplicitDtor() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonPeephole.cpp | 104 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src); 140 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction() local 142 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 159 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction() local 164 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 176 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction() local 181 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 191 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction() local 193 unsigned DstReg = Dst.getReg(); in runOnMachineFunction() 209 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction() local [all …]
|
/external/eigen/Eigen/src/Core/ |
D | Assign_MKL.h | 43 template<typename Dst, typename Src, typename UnaryOp> 48 DstHasDirectAccess = Dst::Flags & DirectAccessBit, 51 StorageOrdersAgree = (int(Dst::IsRowMajor) == int(Src::IsRowMajor)), 52 InnerSize = int(Dst::IsVectorAtCompileTime) ? int(Dst::SizeAtCompileTime) 53 : int(Dst::Flags)&RowMajorBit ? int(Dst::ColsAtCompileTime) 54 : int(Dst::RowsAtCompileTime), 55 InnerMaxSize = int(Dst::IsVectorAtCompileTime) ? int(Dst::MaxSizeAtCompileTime) 56 : int(Dst::Flags)&RowMajorBit ? int(Dst::MaxColsAtCompileTime) 57 : int(Dst::MaxRowsAtCompileTime), 58 MaxSizeAtCompileTime = Dst::SizeAtCompileTime, [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_aapoint.c | 243 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 244 newInst.Dst[0].Register.Index = tmp0; in aa_transform_inst() 245 newInst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_XY; in aa_transform_inst() 257 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 258 newInst.Dst[0].Register.Index = tmp0; in aa_transform_inst() 259 newInst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_X; in aa_transform_inst() 274 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 275 newInst.Dst[0].Register.Index = tmp0; in aa_transform_inst() 276 newInst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_X; in aa_transform_inst() 286 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
D | draw_pipe_aapoint.c | 243 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 244 newInst.Dst[0].Register.Index = tmp0; in aa_transform_inst() 245 newInst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_XY; in aa_transform_inst() 257 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 258 newInst.Dst[0].Register.Index = tmp0; in aa_transform_inst() 259 newInst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_X; in aa_transform_inst() 274 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() 275 newInst.Dst[0].Register.Index = tmp0; in aa_transform_inst() 276 newInst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_X; in aa_transform_inst() 286 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in aa_transform_inst() [all …]
|
/external/clang/lib/Analysis/ |
D | CFGReachabilityAnalysis.cpp | 26 const CFGBlock *Dst) { in isReachable() argument 28 const unsigned DstBlockID = Dst->getBlockID(); in isReachable() 32 mapReachability(Dst); in isReachable() 42 void CFGReverseBlockReachabilityAnalysis::mapReachability(const CFGBlock *Dst) { in mapReachability() argument 46 ReachableSet &DstReachability = reachable[Dst->getBlockID()]; in mapReachability() 51 worklist.push_back(Dst); in mapReachability()
|
/external/llvm/include/llvm/Analysis/ |
D | DependenceAnalysis.h | 75 Dst(Destination), in Dependence() 108 Instruction *getDst() const { return Dst; } in getDst() 204 Instruction *Src, *Dst; 221 Instruction *Dst, 291 Instruction *Dst, 347 const SCEV *Dst; member 510 const Instruction *Dst); 546 bool checkDstSubscript(const SCEV *Dst, 575 const SCEV *Dst, 585 const SCEV *Dst, [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZSelectionDAGInfo.cpp | 33 unsigned Loop, SDValue Chain, SDValue Dst, in emitMemMem() argument 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() 74 SDValue Dst, uint64_t ByteVal, uint64_t Size, in memsetStore() argument 82 Dst, DstPtrInfo, false, false, Align); in memsetStore() 87 SDValue Dst, SDValue Byte, SDValue Size, in EmitTargetCodeForMemset() argument 90 EVT PtrVT = Dst.getValueType(); in EmitTargetCodeForMemset() 110 SDValue Chain1 = memsetStore(DAG, DL, Chain, Dst, ByteVal, Size1, in EmitTargetCodeForMemset() [all …]
|
/external/llvm/include/llvm/Target/ |
D | CostTable.h | 51 TypeTy Dst; member 60 unsigned len, int ISD, CompareTy Dst, in ConvertCostTableLookup() argument 63 if (ISD == Tbl[i].ISD && Src == Tbl[i].Src && Dst == Tbl[i].Dst) in ConvertCostTableLookup() 74 int ISD, CompareTy Dst, CompareTy Src) { in ConvertCostTableLookup() argument 75 return ConvertCostTableLookup(Tbl, N, ISD, Dst, Src); in ConvertCostTableLookup()
|
/external/llvm/lib/IR/ |
D | IRBuilder.cpp | 82 CreateMemCpy(Value *Dst, Value *Src, Value *Size, unsigned Align, in CreateMemCpy() argument 84 Dst = getCastedInt8PtrValue(Dst); in CreateMemCpy() 87 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemCpy() 88 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemCpy() 106 CreateMemMove(Value *Dst, Value *Src, Value *Size, unsigned Align, in CreateMemMove() argument 108 Dst = getCastedInt8PtrValue(Dst); in CreateMemMove() 111 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemMove() 112 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemMove()
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineBranchProbabilityInfo.h | 50 const MachineBasicBlock *Dst) const; 55 MachineBasicBlock::const_succ_iterator Dst) const; 64 const MachineBasicBlock *Dst) const; 77 const MachineBasicBlock *Dst) const; 84 const MachineBasicBlock *Dst) const;
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
D | tgsi_parse.c | 208 next_token( ctx, &inst->Dst[i].Register ); in tgsi_parse_token() 210 if( inst->Dst[i].Register.Indirect ) { in tgsi_parse_token() 211 next_token( ctx, &inst->Dst[i].Indirect ); in tgsi_parse_token() 216 assert( !inst->Dst[i].Indirect.Dimension ); in tgsi_parse_token() 217 assert( !inst->Dst[i].Indirect.Indirect ); in tgsi_parse_token() 219 if( inst->Dst[i].Register.Dimension ) { in tgsi_parse_token() 220 next_token( ctx, &inst->Dst[i].Dimension ); in tgsi_parse_token() 225 assert( !inst->Dst[i].Dimension.Dimension ); in tgsi_parse_token() 227 if( inst->Dst[i].Dimension.Indirect ) { in tgsi_parse_token() 228 next_token( ctx, &inst->Dst[i].DimIndirect ); in tgsi_parse_token() [all …]
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_parse.c | 208 next_token( ctx, &inst->Dst[i].Register ); in tgsi_parse_token() 210 if( inst->Dst[i].Register.Indirect ) { in tgsi_parse_token() 211 next_token( ctx, &inst->Dst[i].Indirect ); in tgsi_parse_token() 216 assert( !inst->Dst[i].Indirect.Dimension ); in tgsi_parse_token() 217 assert( !inst->Dst[i].Indirect.Indirect ); in tgsi_parse_token() 219 if( inst->Dst[i].Register.Dimension ) { in tgsi_parse_token() 220 next_token( ctx, &inst->Dst[i].Dimension ); in tgsi_parse_token() 225 assert( !inst->Dst[i].Dimension.Dimension ); in tgsi_parse_token() 227 if( inst->Dst[i].Dimension.Indirect ) { in tgsi_parse_token() 228 next_token( ctx, &inst->Dst[i].DimIndirect ); in tgsi_parse_token() [all …]
|
/external/eigen/test/ |
D | vectorization_logic.cpp | 31 template<typename Dst, typename Src> 32 bool test_assign(const Dst&, const Src&, int traversal, int unrolling) in test_assign() argument 34 internal::assign_traits<Dst,Src>::debug(); in test_assign() 35 bool res = internal::assign_traits<Dst,Src>::Traversal==traversal in test_assign() 36 && internal::assign_traits<Dst,Src>::Unrolling==unrolling; in test_assign() 40 << " got " << demangle_traversal(internal::assign_traits<Dst,Src>::Traversal) << "\n"; in test_assign() 42 << " got " << demangle_unrolling(internal::assign_traits<Dst,Src>::Unrolling) << "\n"; in test_assign() 47 template<typename Dst, typename Src> 50 internal::assign_traits<Dst,Src>::debug(); in test_assign() 51 bool res = internal::assign_traits<Dst,Src>::Traversal==traversal in test_assign() [all …]
|