Home
last modified time | relevance | path

Searched refs:Lhs (Results 1 – 25 of 139) sorted by relevance

123456

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAlignment.h47 friend bool operator==(Align Lhs, Align Rhs);
48 friend bool operator!=(Align Lhs, Align Rhs);
49 friend bool operator<=(Align Lhs, Align Rhs);
50 friend bool operator>=(Align Lhs, Align Rhs);
51 friend bool operator<(Align Lhs, Align Rhs);
52 friend bool operator>(Align Lhs, Align Rhs);
146 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() argument
147 return SizeInBytes % Lhs.value() == 0; in isAligned()
152 inline bool isAligned(MaybeAlign Lhs, uint64_t SizeInBytes) { in isAligned() argument
153 ALIGN_CHECK_ISSET(Lhs); in isAligned()
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DAlignment.h46 friend bool operator==(Align Lhs, Align Rhs);
47 friend bool operator!=(Align Lhs, Align Rhs);
48 friend bool operator<=(Align Lhs, Align Rhs);
49 friend bool operator>=(Align Lhs, Align Rhs);
50 friend bool operator<(Align Lhs, Align Rhs);
51 friend bool operator>(Align Lhs, Align Rhs);
148 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() argument
149 return SizeInBytes % Lhs.value() == 0; in isAligned()
153 inline bool isAddrAligned(Align Lhs, const void *Addr) { in isAddrAligned() argument
154 return isAligned(Lhs, reinterpret_cast<uintptr_t>(Addr)); in isAddrAligned()
[all …]
/external/eigen/Eigen/src/Core/
DProductEvaluators.h28 template<typename Lhs, typename Rhs, int Options>
29 struct evaluator<Product<Lhs, Rhs, Options> >
30 : public product_evaluator<Product<Lhs, Rhs, Options> >
32 typedef Product<Lhs, Rhs, Options> XprType;
40 template<typename Lhs, typename Rhs, typename Scalar1, typename Scalar2, typename Plain1>
43 const Product<Lhs, Rhs, DefaultProduct> > >
47 template<typename Lhs, typename Rhs, typename Scalar1, typename Scalar2, typename Plain1>
50 const Product<Lhs, Rhs, DefaultProduct> > >
51 …: public evaluator<Product<EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(Scalar1,Lhs,product), Rhs, Defau…
55 const Product<Lhs, Rhs, DefaultProduct> > XprType;
[all …]
DSolveTriangular.h26 template<typename Lhs, typename Rhs, int Side>
41 template<typename Lhs, typename Rhs,
44 int Unrolling = trsolve_traits<Lhs,Rhs,Side>::Unrolling,
45 int RhsVectors = trsolve_traits<Lhs,Rhs,Side>::RhsVectors
49 template<typename Lhs, typename Rhs, int Side, int Mode>
50 struct triangular_solver_selector<Lhs,Rhs,Side,Mode,NoUnrolling,1>
52 typedef typename Lhs::Scalar LhsScalar;
54 typedef blas_traits<Lhs> LhsProductTraits;
57 static void run(const Lhs& lhs, Rhs& rhs)
72 (int(Lhs::Flags) & RowMajorBit) ? RowMajor : ColMajor>
[all …]
DProduct.h15 template<typename Lhs, typename Rhs, int Option, typename StorageKind> class ProductImpl;
19 template<typename Lhs, typename Rhs, int Option>
20 struct traits<Product<Lhs, Rhs, Option> >
22 typedef typename remove_all<Lhs>::type LhsCleaned;
32 … internal::product_type<Lhs,Rhs>::ret>::ret StorageKind;
78 typedef _Lhs Lhs;
82 Lhs, Rhs, Option,
83 typename internal::product_promote_storage_type<typename internal::traits<Lhs>::StorageKind,
85 … internal::product_type<Lhs,Rhs>::ret>::ret>::Base Base;
88 typedef typename internal::ref_selector<Lhs>::type LhsNested;
[all …]
DCwiseBinaryOp.h17 template<typename BinaryOp, typename Lhs, typename Rhs>
18 struct traits<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >
22 typedef typename remove_all<Lhs>::type Ancestor;
35 const typename Lhs::Scalar&,
39 typedef typename cwise_promote_storage_type<typename traits<Lhs>::StorageKind,
42 typedef typename promote_index_type<typename traits<Lhs>::StorageIndex,
44 typedef typename Lhs::Nested LhsNested;
49 …Flags = cwise_promote_storage_order<typename traits<Lhs>::StorageKind,typename traits<Rhs>::Storag…
54 template<typename BinaryOp, typename Lhs, typename Rhs, typename StorageKind>
88 typedef typename internal::remove_all<LhsType>::type Lhs;
[all …]
/external/eigen/Eigen/src/SparseCore/
DSparseSparseProductWithPruning.h19 template<typename Lhs, typename Rhs, typename ResultType>
20 static void sparse_sparse_product_with_pruning_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res… in sparse_sparse_product_with_pruning_impl()
24 typedef typename remove_all<Lhs>::type::Scalar Scalar; in sparse_sparse_product_with_pruning_impl()
25 typedef typename remove_all<Lhs>::type::StorageIndex StorageIndex; in sparse_sparse_product_with_pruning_impl()
42 evaluator<Lhs> lhsEval(lhs); in sparse_sparse_product_with_pruning_impl()
67 for (typename evaluator<Lhs>::InnerIterator lhsIt(lhsEval, rhsIt.index()); lhsIt; ++lhsIt) in sparse_sparse_product_with_pruning_impl()
79 template<typename Lhs, typename Rhs, typename ResultType,
80 int LhsStorageOrder = traits<Lhs>::Flags&RowMajorBit,
85 template<typename Lhs, typename Rhs, typename ResultType>
86 struct sparse_sparse_product_with_pruning_selector<Lhs,Rhs,ResultType,ColMajor,ColMajor,ColMajor>
[all …]
DConservativeSparseSparseProduct.h17 template<typename Lhs, typename Rhs, typename ResultType>
18 static void conservative_sparse_sparse_product_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res…
20 typedef typename remove_all<Lhs>::type::Scalar Scalar;
33 evaluator<Lhs> lhsEval(lhs);
56 for (typename evaluator<Lhs>::InnerIterator lhsIt(lhsEval, k); lhsIt; ++lhsIt)
125 template<typename Lhs, typename Rhs, typename ResultType,
126 int LhsStorageOrder = (traits<Lhs>::Flags&RowMajorBit) ? RowMajor : ColMajor,
131 template<typename Lhs, typename Rhs, typename ResultType>
132 struct conservative_sparse_sparse_product_selector<Lhs,Rhs,ResultType,ColMajor,ColMajor,ColMajor>
134 typedef typename remove_all<Lhs>::type LhsCleaned;
[all …]
DSparseProduct.h37 template<typename Lhs, typename Rhs, int ProductType>
38 struct generic_product_impl<Lhs, Rhs, SparseShape, SparseShape, ProductType>
41 static void evalTo(Dest& dst, const Lhs& lhs, const Rhs& rhs)
60 …static void subTo(Dest& dst, const Lhs& lhs, const Rhs& rhs, typename enable_if<is_same<typename e…
69 static void evalTo(Dest& dst, const Lhs& lhs, const Rhs& rhs, SparseShape)
71 typedef typename nested_eval<Lhs,Dynamic>::type LhsNested;
81 static void evalTo(Dest& dst, const Lhs& lhs, const Rhs& rhs, DenseShape)
89 template<typename Lhs, typename Rhs, int ProductType>
90 struct generic_product_impl<Lhs, Rhs, SparseShape, SparseTriangularShape, ProductType>
91 : public generic_product_impl<Lhs, Rhs, SparseShape, SparseShape, ProductType>
[all …]
DSparseDenseProduct.h29 typedef typename internal::remove_all<SparseLhsType>::type Lhs;
32 typedef typename evaluator<Lhs>::InnerIterator LhsInnerIterator;
33 typedef evaluator<Lhs> LhsEval;
88 typedef typename internal::remove_all<SparseLhsType>::type Lhs;
91 typedef typename evaluator<Lhs>::InnerIterator LhsInnerIterator;
94 evaluator<Lhs> lhsEval(lhs);
111 typedef typename internal::remove_all<SparseLhsType>::type Lhs;
114 typedef typename evaluator<Lhs>::InnerIterator LhsInnerIterator;
117 evaluator<Lhs> lhsEval(lhs);
130 typedef typename internal::remove_all<SparseLhsType>::type Lhs;
[all …]
DSparseCwiseBinaryOp.h35 template<typename BinaryOp, typename Lhs, typename Rhs>
36 class CwiseBinaryOpImpl<BinaryOp, Lhs, Rhs, Sparse>
37 : public SparseMatrixBase<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >
40 typedef CwiseBinaryOp<BinaryOp, Lhs, Rhs> Derived;
46 (!internal::is_same<typename internal::traits<Lhs>::StorageKind, in CwiseBinaryOpImpl()
48 …|| ((internal::evaluator<Lhs>::Flags&RowMajorBit) == (internal::evaluator<Rhs>::Flags&RowMajorBit… in CwiseBinaryOpImpl()
59 template<typename BinaryOp, typename Lhs, typename Rhs>
60 struct binary_evaluator<CwiseBinaryOp<BinaryOp, Lhs, Rhs>, IteratorBased, IteratorBased>
61 : evaluator_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >
64 typedef typename evaluator<Lhs>::InnerIterator LhsIterator;
[all …]
DTriangularSolver.h17 template<typename Lhs, typename Rhs, int Mode,
23 int StorageOrder = int(traits<Lhs>::Flags) & RowMajorBit>
27 template<typename Lhs, typename Rhs, int Mode>
28 struct sparse_solve_triangular_selector<Lhs,Rhs,Mode,Lower,RowMajor>
31 typedef evaluator<Lhs> LhsEval;
32 typedef typename evaluator<Lhs>::InnerIterator LhsIterator;
33 static void run(const Lhs& lhs, Rhs& other)
64 template<typename Lhs, typename Rhs, int Mode>
65 struct sparse_solve_triangular_selector<Lhs,Rhs,Mode,Upper,RowMajor>
68 typedef evaluator<Lhs> LhsEval;
[all …]
DSparseDiagonalProduct.h37 template<typename Lhs, typename Rhs, int ProductTag>
38 struct product_evaluator<Product<Lhs, Rhs, DefaultProduct>, ProductTag, DiagonalShape, SparseShape>
39 …: public sparse_diagonal_product_evaluator<Rhs, typename Lhs::DiagonalVectorType, Rhs::Flags&RowMa…
41 typedef Product<Lhs, Rhs, DefaultProduct> XprType;
44 …typedef sparse_diagonal_product_evaluator<Rhs, typename Lhs::DiagonalVectorType, Rhs::Flags&RowMaj…
48 template<typename Lhs, typename Rhs, int ProductTag>
49 struct product_evaluator<Product<Lhs, Rhs, DefaultProduct>, ProductTag, SparseShape, DiagonalShape>
50 …: public sparse_diagonal_product_evaluator<Lhs, Transpose<const typename Rhs::DiagonalVectorType>,…
52 typedef Product<Lhs, Rhs, DefaultProduct> XprType;
53 …enum { CoeffReadCost = HugeCost, Flags = Lhs::Flags&RowMajorBit, Alignment = 0 }; // FIXME CoeffRe…
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DNarrowingConversionsCheck.cpp191 const Expr &Lhs, in diagNarrowType() argument
194 << getUnqualifiedType(Rhs) << getUnqualifiedType(Lhs); in diagNarrowType()
198 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs) { in diagNarrowTypeToSignedInt() argument
201 << getUnqualifiedType(Rhs) << getUnqualifiedType(Lhs); in diagNarrowTypeToSignedInt()
205 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs, in diagNarrowIntegerConstant() argument
210 << getUnqualifiedType(Lhs); in diagNarrowIntegerConstant()
214 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs, in diagNarrowIntegerConstantToSignedInt() argument
219 << getUnqualifiedType(Lhs); in diagNarrowIntegerConstantToSignedInt()
223 const Expr &Lhs, in diagNarrowConstant() argument
226 << getUnqualifiedType(Rhs) << getUnqualifiedType(Lhs); in diagNarrowConstant()
[all …]
DNarrowingConversionsCheck.h34 void diagNarrowType(SourceLocation SourceLoc, const Expr &Lhs,
37 void diagNarrowTypeToSignedInt(SourceLocation SourceLoc, const Expr &Lhs,
40 void diagNarrowIntegerConstant(SourceLocation SourceLoc, const Expr &Lhs,
44 const Expr &Lhs, const Expr &Rhs,
48 void diagNarrowConstant(SourceLocation SourceLoc, const Expr &Lhs,
51 void diagConstantCast(SourceLocation SourceLoc, const Expr &Lhs,
55 SourceLocation SourceLoc, const Expr &Lhs,
59 const Expr &Lhs, const Expr &Rhs);
62 SourceLocation SourceLoc, const Expr &Lhs,
66 SourceLocation SourceLoc, const Expr &Lhs,
[all …]
/external/eigen/unsupported/Eigen/src/KroneckerProduct/
DKroneckerTensorProduct.h32 typedef typename Traits::Lhs Lhs; typedef
37 KroneckerProductBase(const Lhs& A, const Rhs& B) in KroneckerProductBase()
65 typename Lhs::Nested m_A;
81 template<typename Lhs, typename Rhs>
82 class KroneckerProduct : public KroneckerProductBase<KroneckerProduct<Lhs,Rhs> >
91 KroneckerProduct(const Lhs& A, const Rhs& B) in KroneckerProduct()
114 template<typename Lhs, typename Rhs>
115 class KroneckerProductSparse : public KroneckerProductBase<KroneckerProductSparse<Lhs,Rhs> >
124 KroneckerProductSparse(const Lhs& A, const Rhs& B) in KroneckerProductSparse()
132 template<typename Lhs, typename Rhs>
[all …]
/external/gemmlowp/internal/
Dsimd_wrappers.h134 template <typename Lhs, typename Rhs>
137 Lhs::kRows > Rhs::kRows ? Lhs::kRows : Rhs::kRows;
139 Lhs::kCols > Rhs::kCols ? Lhs::kCols : Rhs::kCols;
142 template <typename Lhs, typename Rhs>
144 using Shape = BroadcastBinaryOpShape<Lhs, Rhs>;
145 using ScalarType = typename Lhs::ScalarType;
149 template <typename Lhs, typename Rhs>
152 typename BroadcastBinaryOpRegisterBlock<Lhs, Rhs>::Type;
153 static ResultBlockType Run(const Lhs& lhs, const Rhs& rhs) {
157 static constexpr int LhsRows = Lhs::kRows;
[all …]
Dkernel_reference.h40 Format::Lhs::kCells, Format::Lhs::Cell::kWidth, in Name()
41 Format::Lhs::Cell::kDepth, in Name()
42 CellOrderName(Format::Lhs::Cell::kOrder), Format::Rhs::kCells, in Name()
61 for (int rc = 0; rc < Format::Lhs::kCells; rc++) { in Run()
63 lhs_ptr + (dc * Format::Lhs::kCells + rc) * in Run()
64 Format::Lhs::Cell::kWidth * Format::kDepth; in Run()
74 for (int ri = 0; ri < Format::Lhs::Cell::kWidth; ri++) { in Run()
78 OffsetIntoCell<typename Format::Lhs::Cell>(ri, di); in Run()
83 accumulator + (ri + rc * Format::Lhs::Cell::kWidth) + in Run()
/external/eigen/unsupported/Eigen/src/Skyline/
DSkylineProduct.h15 template<typename Lhs, typename Rhs, int ProductMode>
17 typedef const typename internal::nested_eval<Lhs, Rhs::RowsAtCompileTime>::type LhsNested;
18 typedef const typename internal::nested_eval<Rhs, Lhs::RowsAtCompileTime>::type RhsNested;
75 template<typename Lhs, typename Rhs>
76 EIGEN_STRONG_INLINE SkylineProduct(const Lhs& lhs, const Rhs& rhs)
121 template<typename Lhs, typename Rhs, typename Dest>
122 EIGEN_DONT_INLINE void skyline_row_major_time_dense_product(const Lhs& lhs, const Rhs& rhs, Dest& d…
123 typedef typename remove_all<Lhs>::type _Lhs;
125 typedef typename traits<Lhs>::Scalar Scalar;
184 template<typename Lhs, typename Rhs, typename Dest>
[all …]
/external/eigen/Eigen/src/Geometry/
DHomogeneous.h55 template<typename MatrixType,typename Lhs> struct homogeneous_left_product_impl;
88 template<typename Lhs> friend
89 EIGEN_DEVICE_FUNC inline const Product<Lhs,Homogeneous>
90 operator* (const MatrixBase<Lhs>& lhs, const Homogeneous& rhs)
93 return Product<Lhs,Homogeneous>(lhs.derived(),rhs);
238 template<typename MatrixType,typename Lhs>
239 struct traits<homogeneous_left_product_impl<Homogeneous<MatrixType,Vertical>,Lhs> >
241 typedef typename take_matrix_for_product<Lhs>::type LhsMatrixType;
253 template<typename MatrixType,typename Lhs>
254 struct homogeneous_left_product_impl<Homogeneous<MatrixType,Vertical>,Lhs>
[all …]
/external/libchrome/base/numerics/
Dsafe_conversions_impl.h447 template <typename Lhs,
450 (MaxExponent<Lhs>::value > MaxExponent<Rhs>::value)
455 template <typename Lhs, typename Rhs>
456 struct MaxExponentPromotion<Lhs, Rhs, LEFT_PROMOTION> {
457 using type = Lhs;
460 template <typename Lhs, typename Rhs>
461 struct MaxExponentPromotion<Lhs, Rhs, RIGHT_PROMOTION> {
466 template <typename Lhs,
469 std::is_signed<Lhs>::value
471 ? (MaxExponent<Lhs>::value > MaxExponent<Rhs>::value
[all …]
/external/pdfium/third_party/base/numerics/
Dsafe_conversions_impl.h448 template <typename Lhs,
451 (MaxExponent<Lhs>::value > MaxExponent<Rhs>::value)
456 template <typename Lhs, typename Rhs>
457 struct MaxExponentPromotion<Lhs, Rhs, LEFT_PROMOTION> {
458 using type = Lhs;
461 template <typename Lhs, typename Rhs>
462 struct MaxExponentPromotion<Lhs, Rhs, RIGHT_PROMOTION> {
467 template <typename Lhs,
470 std::is_signed<Lhs>::value
472 ? (MaxExponent<Lhs>::value > MaxExponent<Rhs>::value
[all …]
/external/libtextclassifier/native/utils/grammar/utils/
Dir.h75 struct Lhs { struct
76 bool operator==(const Lhs& other) const {
85 using LhsSet = std::vector<Lhs>; argument
143 Nonterm Add(const Lhs& lhs, const std::string& terminal,
147 return Add(Lhs{lhs}, terminal, case_sensitive, shard);
151 Nonterm Add(const Lhs& lhs, Nonterm rhs, int shard = 0) {
155 return Add(Lhs{lhs}, rhs, shard);
159 Nonterm Add(const Lhs& lhs, Nonterm rhs_1, Nonterm rhs_2, int shard = 0) {
163 return Add(Lhs{lhs}, rhs_1, rhs_2, shard);
174 Nonterm Add(const Lhs& lhs, const std::vector<Nonterm>& rhs, int shard = 0);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/
DMsgPackDocument.h146 friend bool operator<(const DocNode &Lhs, const DocNode &Rhs) {
149 if (Lhs.KindAndDoc != Rhs.KindAndDoc) {
152 if (!Lhs.KindAndDoc)
154 return (unsigned)Lhs.getKind() < (unsigned)Rhs.getKind();
156 switch (Lhs.getKind()) {
158 return Lhs.Int < Rhs.Int;
160 return Lhs.UInt < Rhs.UInt;
164 return Lhs.Bool < Rhs.Bool;
166 return Lhs.Float < Rhs.Float;
169 return Lhs.Raw < Rhs.Raw;
[all …]
/external/llvm-project/llvm/include/llvm/BinaryFormat/
DMsgPackDocument.h150 friend bool operator<(const DocNode &Lhs, const DocNode &Rhs) {
155 if (Lhs.KindAndDoc != Rhs.KindAndDoc) {
156 if (Lhs.isEmpty())
158 return (unsigned)Lhs.getKind() < (unsigned)Rhs.getKind();
160 switch (Lhs.getKind()) {
162 return Lhs.Int < Rhs.Int;
164 return Lhs.UInt < Rhs.UInt;
168 return Lhs.Bool < Rhs.Bool;
170 return Lhs.Float < Rhs.Float;
173 return Lhs.Raw < Rhs.Raw;
[all …]

123456