/third_party/boost/boost/test/data/ |
D | size.hpp | 90 inline bool operator>(data::size_t lhs, std::size_t rhs) { return lhs.is_inf() || (lhs.value() … in operator >() argument 91 inline bool operator>(std::size_t lhs, data::size_t rhs) { return !rhs.is_inf() && (lhs > rhs.va… in operator >() argument 92 inline bool operator>(data::size_t lhs, data::size_t rhs) { return lhs.is_inf() ^ rhs.is_inf() ? … in operator >() argument 94 inline bool operator>=(data::size_t lhs, std::size_t rhs ) { return lhs.is_inf() || (lhs.value() … in operator >=() argument 95 inline bool operator>=(std::size_t lhs, data::size_t rhs) { return !rhs.is_inf() && (lhs >= rhs.v… in operator >=() argument 96 inline bool operator>=(data::size_t lhs, data::size_t rhs) { return lhs.is_inf() ^ rhs.is_inf() ? … in operator >=() argument 98 inline bool operator<(data::size_t lhs, std::size_t rhs) { return !lhs.is_inf() && (lhs.value() … in operator <() argument 99 inline bool operator<(std::size_t lhs, data::size_t rhs) { return rhs.is_inf() || (lhs < rhs.va… in operator <() argument 100 inline bool operator<(data::size_t lhs, data::size_t rhs) { return lhs.is_inf() ^ rhs.is_inf() ? … in operator <() argument 102 inline bool operator<=(data::size_t lhs, std::size_t rhs) { return !lhs.is_inf() && (lhs.value() … in operator <=() argument [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/ |
D | vktSubgroupsScanHelpers.cpp | 59 string getOpOperation (Operator op, VkFormat format, string lhs, string rhs) in getOpOperation() argument 67 return lhs + " + " + rhs; in getOpOperation() 69 return lhs + " * " + rhs; in getOpOperation() 74 return "min(" + lhs + ", " + rhs + ")"; in getOpOperation() 78 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : min(" + lhs + ", "… in getOpOperation() 88 …return "mix(mix(min(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpOperation() 94 return "max(" + lhs + ", " + rhs + ")"; in getOpOperation() 98 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : max(" + lhs + ", "… in getOpOperation() 108 …return "mix(mix(max(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpOperation() 114 return lhs + " & " + rhs; in getOpOperation() [all …]
|
/third_party/boost/boost/xpressive/ |
D | sub_match.hpp | 209 bool operator == (sub_match<BidiIter> const &lhs, sub_match<BidiIter> const &rhs) in operator ==() argument 211 return lhs.compare(rhs) == 0; in operator ==() 215 bool operator != (sub_match<BidiIter> const &lhs, sub_match<BidiIter> const &rhs) in operator !=() argument 217 return lhs.compare(rhs) != 0; in operator !=() 221 bool operator < (sub_match<BidiIter> const &lhs, sub_match<BidiIter> const &rhs) in operator <() argument 223 return lhs.compare(rhs) < 0; in operator <() 227 bool operator <= (sub_match<BidiIter> const &lhs, sub_match<BidiIter> const &rhs) in operator <=() argument 229 return lhs.compare(rhs) <= 0; in operator <=() 233 bool operator >= (sub_match<BidiIter> const &lhs, sub_match<BidiIter> const &rhs) in operator >=() argument 235 return lhs.compare(rhs) >= 0; in operator >=() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | Reactor.cpp | 98 std::sort(sorted.begin(), sorted.end(), [&](auto &lhs, auto &rhs) { in materializeAll() argument 99 return lhs.second < rhs.second; in materializeAll() 212 static Value *createShuffle4(Value *lhs, Value *rhs, uint16_t select) in createShuffle4() argument 221 return Nucleus::createShuffleVector(lhs, rhs, swizzle); in createShuffle4() 250 static Value *createMask4(Value *lhs, Value *rhs, uint16_t select) in createMask4() argument 266 return Nucleus::createShuffleVector(lhs, rhs, swizzle); in createMask4() 314 RValue<Bool> operator&&(RValue<Bool> lhs, RValue<Bool> rhs) in operator &&() argument 316 return RValue<Bool>(Nucleus::createAnd(lhs.value(), rhs.value())); in operator &&() 319 RValue<Bool> operator||(RValue<Bool> lhs, RValue<Bool> rhs) in operator ||() argument 321 return RValue<Bool>(Nucleus::createOr(lhs.value(), rhs.value())); in operator ||() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/ |
D | slice.h | 48 ReadableSlice(const ReadableSlice &lhs) { in ReadableSlice() argument 49 ptr_ = lhs.ptr_; in ReadableSlice() 50 sz_ = lhs.sz_; in ReadableSlice() 52 ReadableSlice &operator=(const ReadableSlice &lhs) { 53 if (this != &lhs) { 54 ptr_ = lhs.ptr_; 55 sz_ = lhs.sz_; 59 ReadableSlice(ReadableSlice &&lhs) noexcept { in ReadableSlice() argument 60 if (this != &lhs) { in ReadableSlice() 61 ptr_ = lhs.ptr_; in ReadableSlice() [all …]
|
/third_party/boost/boost/type_index/ |
D | type_index_facade.hpp | 154 BOOST_CXX14_CONSTEXPR inline bool operator == (const type_index_facade<Derived, TypeInfo>& lhs, con… in operator ==() argument 155 return static_cast<Derived const&>(lhs).equal(static_cast<Derived const&>(rhs)); in operator ==() 159 BOOST_CXX14_CONSTEXPR inline bool operator < (const type_index_facade<Derived, TypeInfo>& lhs, cons… in operator <() argument 160 return static_cast<Derived const&>(lhs).before(static_cast<Derived const&>(rhs)); in operator <() 166 BOOST_CXX14_CONSTEXPR inline bool operator > (const type_index_facade<Derived, TypeInfo>& lhs, cons… in operator >() argument 167 return rhs < lhs; in operator >() 171 BOOST_CXX14_CONSTEXPR inline bool operator <= (const type_index_facade<Derived, TypeInfo>& lhs, con… in operator <=() argument 172 return !(lhs > rhs); in operator <=() 176 BOOST_CXX14_CONSTEXPR inline bool operator >= (const type_index_facade<Derived, TypeInfo>& lhs, con… in operator >=() argument 177 return !(lhs < rhs); in operator >=() [all …]
|
/third_party/boost/boost/tuple/ |
D | tuple_comparison.hpp | 54 inline bool eq(const T1& lhs, const T2& rhs) { in eq() argument 55 return lhs.get_head() == rhs.get_head() && in eq() 56 eq(lhs.get_tail(), rhs.get_tail()); in eq() 62 inline bool neq(const T1& lhs, const T2& rhs) { in neq() argument 63 return lhs.get_head() != rhs.get_head() || in neq() 64 neq(lhs.get_tail(), rhs.get_tail()); in neq() 70 inline bool lt(const T1& lhs, const T2& rhs) { in lt() argument 71 return lhs.get_head() < rhs.get_head() || in lt() 72 ( !(rhs.get_head() < lhs.get_head()) && in lt() 73 lt(lhs.get_tail(), rhs.get_tail())); in lt() [all …]
|
/third_party/boost/boost/core/ |
D | scoped_enum.hpp | 131 …iend BOOST_CONSTEXPR bool operator ==(self_type lhs, self_type rhs) BOOST_NOEXCEPT { return enum_t… 132 …iend BOOST_CONSTEXPR bool operator ==(self_type lhs, enum_type rhs) BOOST_NOEXCEPT { return enum_t… 133 …friend BOOST_CONSTEXPR bool operator ==(enum_type lhs, self_type rhs) BOOST_NOEXCEPT { return lhs=… 134 …iend BOOST_CONSTEXPR bool operator !=(self_type lhs, self_type rhs) BOOST_NOEXCEPT { return enum_t… 135 …iend BOOST_CONSTEXPR bool operator !=(self_type lhs, enum_type rhs) BOOST_NOEXCEPT { return enum_t… 136 …friend BOOST_CONSTEXPR bool operator !=(enum_type lhs, self_type rhs) BOOST_NOEXCEPT { return lhs!… 137 …riend BOOST_CONSTEXPR bool operator <(self_type lhs, self_type rhs) BOOST_NOEXCEPT { return enum_t… 138 …riend BOOST_CONSTEXPR bool operator <(self_type lhs, enum_type rhs) BOOST_NOEXCEPT { return enum_t… 139 …friend BOOST_CONSTEXPR bool operator <(enum_type lhs, self_type rhs) BOOST_NOEXCEPT { return lhs<e… 140 …iend BOOST_CONSTEXPR bool operator <=(self_type lhs, self_type rhs) BOOST_NOEXCEPT { return enum_t… [all …]
|
/third_party/boost/boost/numeric/ublas/tensor/ |
D | operators_arithmetic.hpp | 45 auto operator OP ( boost::numeric::ublas:: EXPR_TYPE_L <T,L> const& lhs, boost::numeric::ublas:: EX… 46 return boost::numeric::ublas::detail::make_binary_tensor_expression<T> (lhs(), rhs(), \ 63 auto operator OP ( boost::numeric::ublas:: EXPR_TYPE_L <L> const& lhs, boost::numeric::ublas:: EXPR… 64 return boost::numeric::ublas::detail::make_binary_tensor_expression<T> (lhs(), rhs(), \ 82 auto operator+( boost::numeric::ublas::detail::tensor_expression<T,L> const& lhs, boost::numeric::u… in operator +() argument 83 …return boost::numeric::ublas::detail::make_binary_tensor_expression<T> (lhs(), rhs(), [](auto cons… in operator +() 86 auto operator-( boost::numeric::ublas::detail::tensor_expression<T,L> const& lhs, boost::numeric::u… in operator -() argument 87 …return boost::numeric::ublas::detail::make_binary_tensor_expression<T> (lhs(), rhs(), [](auto cons… in operator -() 91 auto operator*( boost::numeric::ublas::detail::tensor_expression<T,L> const& lhs, boost::numeric::u… in operator *() argument 92 …return boost::numeric::ublas::detail::make_binary_tensor_expression<T> (lhs(), rhs(), [](auto cons… in operator *() [all …]
|
D | operators_comparison.hpp | 28 bool compare(tensor<T,F,A> const& lhs, tensor<T,F,A> const& rhs, BinaryPred pred) in compare() argument 31 if(lhs.extents() != rhs.extents()){ in compare() 39 if(lhs.empty()) in compare() 42 for(auto i = 0u; i < lhs.size(); ++i) in compare() 43 if(!pred(lhs(i), rhs(i))) in compare() 59 bool compare(tensor_expression<T,L> const& lhs, tensor_expression<T,R> const& rhs, BinaryPred pred) in compare() argument 65 return compare(static_cast<T const&>( lhs ), static_cast<T const&>( rhs ), pred); in compare() 67 return compare(static_cast<T const&>( lhs ), T( rhs ), pred); in compare() 69 return compare(T( lhs ), static_cast<T const&>( rhs ), pred); in compare() 71 return compare(T( lhs ), T( rhs ), pred); in compare() [all …]
|
/third_party/boost/libs/dynamic_bitset/test/ |
D | bitset_test.hpp | 293 static void copy_assignment_operator(const Bitset& lhs, const Bitset& rhs) in copy_assignment_operator() 295 Bitset b(lhs); in copy_assignment_operator() 323 static void move_assignment_operator(const Bitset& lhs, const Bitset& rhs) in move_assignment_operator() 325 Bitset b(lhs); in move_assignment_operator() 334 static void swap(const Bitset& lhs, const Bitset& rhs) in swap() 337 Bitset copy1(lhs); in swap() 342 BOOST_TEST(copy2 == lhs); in swap() 345 for(typename Bitset::size_type i = 0; i < lhs.size(); ++i) { in swap() 346 Bitset b1(lhs); in swap() 361 static void resize(const Bitset& lhs) in resize() [all …]
|
/third_party/abseil-cpp/absl/types/ |
D | variant_exception_safety_test.cc | 211 ThrowingVariant lhs = ValuelessByException(); in TEST() local 212 EXPECT_TRUE(TestNothrowOp([&]() { lhs = rhs; })); in TEST() 217 ThrowingVariant lhs = WithThrower(); in TEST() local 218 EXPECT_TRUE(TestNothrowOp([&]() { lhs = rhs; })); in TEST() 226 .WithOperation([&rhs](ThrowingVariant* lhs) { *lhs = rhs; }); in TEST() argument 235 .WithOperation([&rhs](ThrowingVariant* lhs) { *lhs = rhs; }); in TEST() argument 251 ThrowingVariant lhs = WithThrower(); in TEST() local 252 EXPECT_TRUE(TestNothrowOp([&]() { lhs = rhs; })); in TEST() 263 .WithOperation([&rhs](ThrowingVariant* lhs) { *lhs = rhs; }); in TEST() argument 266 [](ThrowingVariant* lhs) { in TEST() argument [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/types/ |
D | variant_exception_safety_test.cc | 211 ThrowingVariant lhs = ValuelessByException(); in TEST() local 212 EXPECT_TRUE(TestNothrowOp([&]() { lhs = rhs; })); in TEST() 217 ThrowingVariant lhs = WithThrower(); in TEST() local 218 EXPECT_TRUE(TestNothrowOp([&]() { lhs = rhs; })); in TEST() 226 .WithOperation([&rhs](ThrowingVariant* lhs) { *lhs = rhs; }); in TEST() argument 235 .WithOperation([&rhs](ThrowingVariant* lhs) { *lhs = rhs; }); in TEST() argument 251 ThrowingVariant lhs = WithThrower(); in TEST() local 252 EXPECT_TRUE(TestNothrowOp([&]() { lhs = rhs; })); in TEST() 263 .WithOperation([&rhs](ThrowingVariant* lhs) { *lhs = rhs; }); in TEST() argument 266 [](ThrowingVariant* lhs) { in TEST() argument [all …]
|
/third_party/boost/boost/thread/detail/ |
D | platform_time.hpp | 198 inline bool operator==(platform_duration const& lhs, platform_duration const& rhs) in operator ==() argument 200 return lhs.getNs() == rhs.getNs(); in operator ==() 202 inline bool operator!=(platform_duration const& lhs, platform_duration const& rhs) in operator !=() argument 204 return lhs.getNs() != rhs.getNs(); in operator !=() 206 inline bool operator<(platform_duration const& lhs, platform_duration const& rhs) in operator <() argument 208 return lhs.getNs() < rhs.getNs(); in operator <() 210 inline bool operator<=(platform_duration const& lhs, platform_duration const& rhs) in operator <=() argument 212 return lhs.getNs() <= rhs.getNs(); in operator <=() 214 inline bool operator>(platform_duration const& lhs, platform_duration const& rhs) in operator >() argument 216 return lhs.getNs() > rhs.getNs(); in operator >() [all …]
|
/third_party/boost/boost/type_erasure/ |
D | operators.hpp | 152 static R apply(const T& lhs, const U& rhs) { return lhs op rhs; } \ 159 operator op(const typename derived<Base>::type& lhs, \ 162 return ::boost::type_erasure::call(name<T, U, R>(), lhs, rhs); \ 176 operator op(const T& lhs, \ 179 return ::boost::type_erasure::call(name<T, U, R>(), lhs, rhs); \ 201 static void apply(T& lhs, const U& rhs) { lhs op rhs; } \ 215 operator op(typename detail::non_const_this_param<Base>::type& lhs, \ 218 ::boost::type_erasure::call(name<T, U>(),lhs, rhs); \ 219 return lhs; \ 233 operator op(T& lhs, const typename derived<Base>::type& rhs) \ [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyInstrFloat.td | 27 defm _F32 : I<(outs F32:$dst), (ins F32:$lhs, F32:$rhs), (outs), (ins), 28 [(set F32:$dst, (node F32:$lhs, F32:$rhs))], 29 !strconcat("f32.", !strconcat(name, "\t$dst, $lhs, $rhs")), 31 defm _F64 : I<(outs F64:$dst), (ins F64:$lhs, F64:$rhs), (outs), (ins), 32 [(set F64:$dst, (node F64:$lhs, F64:$rhs))], 33 !strconcat("f64.", !strconcat(name, "\t$dst, $lhs, $rhs")), 37 defm _F32 : I<(outs I32:$dst), (ins F32:$lhs, F32:$rhs), (outs), (ins), 38 [(set I32:$dst, (setcc F32:$lhs, F32:$rhs, cond))], 39 !strconcat("f32.", !strconcat(name, "\t$dst, $lhs, $rhs")), 41 defm _F64 : I<(outs I32:$dst), (ins F64:$lhs, F64:$rhs), (outs), (ins), [all …]
|
/third_party/abseil-cpp/absl/strings/ |
D | charconv.h | 88 inline constexpr chars_format operator&(chars_format lhs, chars_format rhs) { 89 return static_cast<chars_format>(static_cast<int>(lhs) & 92 inline constexpr chars_format operator|(chars_format lhs, chars_format rhs) { 93 return static_cast<chars_format>(static_cast<int>(lhs) | 96 inline constexpr chars_format operator^(chars_format lhs, chars_format rhs) { 97 return static_cast<chars_format>(static_cast<int>(lhs) ^ 103 inline chars_format& operator&=(chars_format& lhs, chars_format rhs) { 104 lhs = lhs & rhs; 105 return lhs; 107 inline chars_format& operator|=(chars_format& lhs, chars_format rhs) { [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | charconv.h | 88 inline constexpr chars_format operator&(chars_format lhs, chars_format rhs) { 89 return static_cast<chars_format>(static_cast<int>(lhs) & 92 inline constexpr chars_format operator|(chars_format lhs, chars_format rhs) { 93 return static_cast<chars_format>(static_cast<int>(lhs) | 96 inline constexpr chars_format operator^(chars_format lhs, chars_format rhs) { 97 return static_cast<chars_format>(static_cast<int>(lhs) ^ 103 inline chars_format& operator&=(chars_format& lhs, chars_format rhs) { 104 lhs = lhs & rhs; 105 return lhs; 107 inline chars_format& operator|=(chars_format& lhs, chars_format rhs) { [all …]
|
/third_party/nghttp2/src/ |
D | template.h | 319 inline bool operator==(const ImmutableString &lhs, const ImmutableString &rhs) { 320 return lhs.size() == rhs.size() && 321 std::equal(std::begin(lhs), std::end(lhs), std::begin(rhs)); 324 inline bool operator==(const ImmutableString &lhs, const std::string &rhs) { 325 return lhs.size() == rhs.size() && 326 std::equal(std::begin(lhs), std::end(lhs), std::begin(rhs)); 329 inline bool operator==(const std::string &lhs, const ImmutableString &rhs) { 330 return rhs == lhs; 333 inline bool operator==(const ImmutableString &lhs, const char *rhs) { 334 return lhs.size() == strlen(rhs) && [all …]
|
/third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/ |
D | glcSubgroupsClusteredTests.cpp | 90 std::string getOpTypeOperation(int opType, Format format, std::string lhs, std::string rhs) in getOpTypeOperation() argument 98 return lhs + " + " + rhs; in getOpTypeOperation() 100 return lhs + " * " + rhs; in getOpTypeOperation() 105 return "min(" + lhs + ", " + rhs + ")"; in getOpTypeOperation() 108 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : min(" + lhs + ", "… in getOpTypeOperation() 115 …return "mix(mix(min(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpTypeOperation() 121 return "max(" + lhs + ", " + rhs + ")"; in getOpTypeOperation() 124 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : max(" + lhs + ", "… in getOpTypeOperation() 131 …return "mix(mix(max(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpTypeOperation() 137 return lhs + " & " + rhs; in getOpTypeOperation() [all …]
|
D | glcSubgroupsArithmeticTests.cpp | 132 std::string getOpTypeOperation(int opType, Format format, std::string lhs, std::string rhs) in getOpTypeOperation() argument 142 return lhs + " + " + rhs; in getOpTypeOperation() 146 return lhs + " * " + rhs; in getOpTypeOperation() 153 return "min(" + lhs + ", " + rhs + ")"; in getOpTypeOperation() 156 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : min(" + lhs + ", "… in getOpTypeOperation() 163 …return "mix(mix(min(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpTypeOperation() 171 return "max(" + lhs + ", " + rhs + ")"; in getOpTypeOperation() 174 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : max(" + lhs + ", "… in getOpTypeOperation() 181 …return "mix(mix(max(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpTypeOperation() 189 return lhs + " & " + rhs; in getOpTypeOperation() [all …]
|
/third_party/boost/boost/heap/detail/ |
D | heap_comparison.hpp | 29 bool value_equality(Heap1 const & lhs, Heap2 const & rhs, in value_equality() argument 32 typename Heap1::value_compare const & cmp = lhs.value_comp(); in value_equality() 42 bool value_compare(Heap1 const & lhs, Heap2 const & rhs, in value_compare() argument 45 typename Heap1::value_compare const & cmp = lhs.value_comp(); in value_compare() 56 bool operator()(Heap1 const & lhs, Heap2 const & rhs) in operator ()() 65 if (lhs.size() != rhs.size()) in operator ()() 68 if (lhs.empty() && rhs.empty()) in operator ()() 71 Heap1 lhs_copy(lhs); in operator ()() 97 bool operator()(Heap1 const & lhs, Heap2 const & rhs) in operator ()() 106 if (lhs.size() != rhs.size()) in operator ()() [all …]
|
/third_party/boost/libs/numeric/ublas/test/tensor/ |
D | test_multi_index_utility.cpp | 126 constexpr auto lhs = std::tuple<>{}; in BOOST_AUTO_TEST_CASE() 128 constexpr auto num = number_equal_indexes<decltype(lhs), decltype(rhs)>::value; in BOOST_AUTO_TEST_CASE() 133 constexpr auto lhs = std::make_tuple(_a); in BOOST_AUTO_TEST_CASE() local 135 constexpr auto num = number_equal_indexes<decltype(lhs), decltype(rhs)>::value; in BOOST_AUTO_TEST_CASE() 140 constexpr auto lhs = std::tuple<>{}; in BOOST_AUTO_TEST_CASE() 142 constexpr auto num = number_equal_indexes<decltype(lhs), decltype(rhs)>::value; in BOOST_AUTO_TEST_CASE() 147 constexpr auto lhs = std::make_tuple(_b); in BOOST_AUTO_TEST_CASE() local 149 constexpr auto num = number_equal_indexes<decltype(lhs), decltype(rhs)>::value; in BOOST_AUTO_TEST_CASE() 156 constexpr auto lhs = std::make_tuple(_a); in BOOST_AUTO_TEST_CASE() local 158 constexpr auto num = number_equal_indexes<decltype(lhs), decltype(rhs)>::value; in BOOST_AUTO_TEST_CASE() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/ |
D | ConstantUnion.cpp | 20 float CheckedSum(float lhs, float rhs, TDiagnostics *diag, const TSourceLoc &line) in CheckedSum() argument 22 float result = lhs + rhs; in CheckedSum() 23 if (gl::isNaN(result) && !gl::isNaN(lhs) && !gl::isNaN(rhs)) in CheckedSum() 27 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedSum() 34 float CheckedDiff(float lhs, float rhs, TDiagnostics *diag, const TSourceLoc &line) in CheckedDiff() argument 36 float result = lhs - rhs; in CheckedDiff() 37 if (gl::isNaN(result) && !gl::isNaN(lhs) && !gl::isNaN(rhs)) in CheckedDiff() 41 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedDiff() 48 float CheckedMul(float lhs, float rhs, TDiagnostics *diag, const TSourceLoc &line) in CheckedMul() argument 50 float result = lhs * rhs; in CheckedMul() [all …]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-bimap.hh | 58 void set (hb_codepoint_t lhs, hb_codepoint_t rhs) in set() 61 if (unlikely (lhs == HB_MAP_VALUE_INVALID)) return; in set() 62 if (unlikely (rhs == HB_MAP_VALUE_INVALID)) { del (lhs); return; } in set() 64 forw_map.set (lhs, rhs); in set() 67 back_map.set (rhs, lhs); in set() 68 if (in_error ()) forw_map.del (lhs); in set() 71 hb_codepoint_t get (hb_codepoint_t lhs) const { return forw_map.get (lhs); } in get() 74 hb_codepoint_t operator [] (hb_codepoint_t lhs) const { return get (lhs); } in operator []() 75 …bool has (hb_codepoint_t lhs, hb_codepoint_t *vp = nullptr) const { return forw_map.has (lhs, vp);… in has() 77 void del (hb_codepoint_t lhs) in del() [all …]
|