/third_party/boost/boost/ratio/ |
D | ratio.hpp | 135 template <class R1, class R2> 137 : boost::ratio_detail::ratio_add<R1, R2>::type 141 template <class R1, class R2> 143 : boost::ratio_detail::ratio_subtract<R1, R2>::type 147 template <class R1, class R2> 149 : boost::ratio_detail::ratio_multiply<R1, R2>::type 153 template <class R1, class R2> 155 : boost::ratio_detail::ratio_divide<R1, R2>::type 167 template <class R1, class R2> 170 (R1::num == R2::num && R1::den == R2::den)> [all …]
|
/third_party/boost/libs/ratio/test/ratio_comparison/ |
D | ratio_less_pass.cpp | 22 typedef boost::ratio<1, 1> R1; in test() typedef 24 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_less<R1, R2>::value), NOTHING, ()); in test() 27 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 29 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_less<R1, R2>::value), NOTHING, ()); in test() 32 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 34 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_less<R1, R2>::value), NOTHING, ()); in test() 37 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 39 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_less<R1, R2>::value), NOTHING, ()); in test() 42 typedef boost::ratio<1, 1> R1; in test() typedef 44 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_less<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | ratio_greater_equal_pass.cpp | 23 typedef boost::ratio<1, 1> R1; in test() typedef 25 BOOST_RATIO_STATIC_ASSERT((boost::ratio_greater_equal<R1, R2>::value), NOTHING, ()); in test() 28 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 30 BOOST_RATIO_STATIC_ASSERT((boost::ratio_greater_equal<R1, R2>::value), NOTHING, ()); in test() 33 typedef boost::ratio<1,BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 35 BOOST_RATIO_STATIC_ASSERT((boost::ratio_greater_equal<R1, R2>::value), NOTHING, ()); in test() 38 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 40 BOOST_RATIO_STATIC_ASSERT((boost::ratio_greater_equal<R1, R2>::value), NOTHING, ()); in test() 43 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 45 BOOST_RATIO_STATIC_ASSERT((boost::ratio_greater_equal<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | ratio_equal_pass.cpp | 25 typedef boost::ratio<1, 1> R1; in test() typedef 27 BOOST_RATIO_STATIC_ASSERT((boost::ratio_equal<R1, R2>::value), NOTHING, ()); in test() 30 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 32 BOOST_RATIO_STATIC_ASSERT((boost::ratio_equal<R1, R2>::value), NOTHING, ()); in test() 35 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 37 BOOST_RATIO_STATIC_ASSERT((boost::ratio_equal<R1, R2>::value), NOTHING, ()); in test() 40 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 42 BOOST_RATIO_STATIC_ASSERT((boost::ratio_equal<R1, R2>::value), NOTHING, ()); in test() 45 typedef boost::ratio<1, 1> R1; in test() typedef 47 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_equal<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | ratio_not_equal_pass.cpp | 22 typedef boost::ratio<1, 1> R1; in test() typedef 24 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_not_equal<R1, R2>::value), NOTHING, ()); in test() 27 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 29 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_not_equal<R1, R2>::value), NOTHING, ()); in test() 32 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 34 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_not_equal<R1, R2>::value), NOTHING, ()); in test() 37 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 39 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_not_equal<R1, R2>::value), NOTHING, ()); in test() 42 typedef boost::ratio<1, 1> R1; in test() typedef 44 BOOST_RATIO_STATIC_ASSERT((boost::ratio_not_equal<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | ratio_less_equal_pass.cpp | 22 typedef boost::ratio<1, 1> R1; in test() typedef 24 BOOST_RATIO_STATIC_ASSERT((boost::ratio_less_equal<R1, R2>::value), NOTHING, ()); in test() 27 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 29 BOOST_RATIO_STATIC_ASSERT((boost::ratio_less_equal<R1, R2>::value), NOTHING, ()); in test() 32 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 34 BOOST_RATIO_STATIC_ASSERT((boost::ratio_less_equal<R1, R2>::value), NOTHING, ()); in test() 37 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 39 BOOST_RATIO_STATIC_ASSERT((boost::ratio_less_equal<R1, R2>::value), NOTHING, ()); in test() 42 typedef boost::ratio<1, 1> R1; in test() typedef 44 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_less_equal<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | ratio_greater_pass.cpp | 22 typedef boost::ratio<1, 1> R1; in test() typedef 24 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_greater<R1, R2>::value), NOTHING, ()); in test() 27 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 29 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_greater<R1, R2>::value), NOTHING, ()); in test() 32 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 34 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_greater<R1, R2>::value), NOTHING, ()); in test() 37 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 39 BOOST_RATIO_STATIC_ASSERT((!boost::ratio_greater<R1, R2>::value), NOTHING, ()); in test() 42 typedef boost::ratio<1, 1> R1; in test() typedef 44 BOOST_RATIO_STATIC_ASSERT((boost::ratio_greater<R1, R2>::value), NOTHING, ()); in test() [all …]
|
/third_party/boost/libs/ratio/test/ratio_extensions/ |
D | mpl_less_pass.cpp | 24 typedef boost::ratio<1, 1> R1; in test() typedef 26 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::less<R1, R2>::value), NOTHING, ()); in test() 29 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 31 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::less<R1, R2>::value), NOTHING, ()); in test() 34 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 36 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::less<R1, R2>::value), NOTHING, ()); in test() 39 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 41 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::less<R1, R2>::value), NOTHING, ()); in test() 44 typedef boost::ratio<1, 1> R1; in test() typedef 46 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::less<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | mpl_greater_equal_pass.cpp | 25 typedef boost::ratio<1, 1> R1; in test() typedef 27 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ()); in test() 30 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 32 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ()); in test() 35 typedef boost::ratio<1,BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 37 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ()); in test() 40 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 42 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ()); in test() 45 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 47 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | mpl_equal_to_pass.cpp | 27 typedef boost::ratio<1, 1> R1; in test() typedef 29 BOOST_RATIO_STATIC_ASSERT((boost::mpl::equal_to<R1, R2>::value), NOTHING, ()); in test() 32 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 34 BOOST_RATIO_STATIC_ASSERT((boost::mpl::equal_to<R1, R2>::value), NOTHING, ()); in test() 37 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 39 BOOST_RATIO_STATIC_ASSERT((boost::mpl::equal_to<R1, R2>::value), NOTHING, ()); in test() 42 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 44 BOOST_RATIO_STATIC_ASSERT((boost::mpl::equal_to<R1, R2>::value), NOTHING, ()); in test() 47 typedef boost::ratio<1, 1> R1; in test() typedef 49 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::equal_to<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | mpl_greater_pass.cpp | 24 typedef boost::ratio<1, 1> R1; in test() typedef 26 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::greater<R1, R2>::value), NOTHING, ()); in test() 29 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 31 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::greater<R1, R2>::value), NOTHING, ()); in test() 34 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 36 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::greater<R1, R2>::value), NOTHING, ()); in test() 39 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 41 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::greater<R1, R2>::value), NOTHING, ()); in test() 44 typedef boost::ratio<1, 1> R1; in test() typedef 46 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | mpl_less_equal_pass.cpp | 24 typedef boost::ratio<1, 1> R1; in test() typedef 26 BOOST_RATIO_STATIC_ASSERT((boost::mpl::less_equal<R1, R2>::value), NOTHING, ()); in test() 29 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 31 BOOST_RATIO_STATIC_ASSERT((boost::mpl::less_equal<R1, R2>::value), NOTHING, ()); in test() 34 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 36 BOOST_RATIO_STATIC_ASSERT((boost::mpl::less_equal<R1, R2>::value), NOTHING, ()); in test() 39 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 41 BOOST_RATIO_STATIC_ASSERT((boost::mpl::less_equal<R1, R2>::value), NOTHING, ()); in test() 44 typedef boost::ratio<1, 1> R1; in test() typedef 46 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::less_equal<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | mpl_not_equal_to_pass.cpp | 24 typedef boost::ratio<1, 1> R1; in test() typedef 26 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::not_equal_to<R1, R2>::value), NOTHING, ()); in test() 29 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 31 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::not_equal_to<R1, R2>::value), NOTHING, ()); in test() 34 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1; in test() typedef 36 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::not_equal_to<R1, R2>::value), NOTHING, ()); in test() 39 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1; in test() typedef 41 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::not_equal_to<R1, R2>::value), NOTHING, ()); in test() 44 typedef boost::ratio<1, 1> R1; in test() typedef 46 BOOST_RATIO_STATIC_ASSERT((boost::mpl::not_equal_to<R1, R2>::value), NOTHING, ()); in test() [all …]
|
D | mpl_divides_pass.cpp | 26 typedef boost::ratio<1, 1> R1; in test() typedef 28 typedef boost::mpl::divides<R1, R2> R; in test() 32 typedef boost::ratio<1, 2> R1; in test() typedef 34 typedef boost::mpl::divides<R1, R2> R; in test() 38 typedef boost::ratio<-1, 2> R1; in test() typedef 40 typedef boost::mpl::divides<R1, R2> R; in test() 44 typedef boost::ratio<1, -2> R1; in test() typedef 46 typedef boost::mpl::divides<R1, R2> R; in test() 50 typedef boost::ratio<1, 2> R1; in test() typedef 52 typedef boost::mpl::divides<R1, R2> R; in test() [all …]
|
D | mpl_times_pass.cpp | 26 typedef boost::ratio<1, 1> R1; in test() typedef 28 typedef boost::mpl::times<R1, R2> R; in test() 32 typedef boost::ratio<1, 2> R1; in test() typedef 34 typedef boost::mpl::times<R1, R2> R; in test() 38 typedef boost::ratio<-1, 2> R1; in test() typedef 40 typedef boost::mpl::times<R1, R2> R; in test() 44 typedef boost::ratio<1, -2> R1; in test() typedef 46 typedef boost::mpl::times<R1, R2> R; in test() 50 typedef boost::ratio<1, 2> R1; in test() typedef 52 typedef boost::mpl::times<R1, R2> R; in test() [all …]
|
D | mpl_minus_pass.cpp | 27 typedef boost::ratio<1, 1> R1; in test() typedef 29 typedef boost::mpl::minus<R1, R2> R; in test() 33 typedef boost::ratio<1, 2> R1; in test() typedef 35 typedef boost::mpl::minus<R1, R2> R; in test() 39 typedef boost::ratio<-1, 2> R1; in test() typedef 41 typedef boost::mpl::minus<R1, R2> R; in test() 45 typedef boost::ratio<1, -2> R1; in test() typedef 47 typedef boost::mpl::minus<R1, R2> R; in test() 51 typedef boost::ratio<1, 2> R1; in test() typedef 53 typedef boost::mpl::minus<R1, R2> R; in test() [all …]
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_regex_fuzzer/ |
D | regex_fuzzer_tests.cc | 28 std::string R1 = ";region1;", R2 = ";regionregion2;", in TEST() local 30 std::string all_regions = R1 + R2 + R3; in TEST() 33 SwapIntervals(0, R1.length(), R1.length() + R2.length(), R3.length(), in TEST() 36 ASSERT_EQ(R3 + R2 + R1, all_regions); in TEST() 41 std::string R1 = ";region1;", R2 = ";regionregion2;", in TEST() local 44 std::string all_regions = R1 + R2 + R3 + R4 + R5; in TEST() 47 SwapIntervals(R1.length(), R2.length(), in TEST() 48 R1.length() + R2.length() + R3.length(), R4.length(), in TEST() 51 ASSERT_EQ(R1 + R4 + R3 + R2 + R5, all_regions); in TEST() 57 std::string R1 = ";region1;", R2 = ";regionregion2;", in TEST() local [all …]
|
/third_party/boost/boost/ratio/detail/ |
D | overflow_helpers.hpp | 187 template <class R1, class R2> struct ratio_add; 188 template <class R1, class R2> struct ratio_subtract; 189 template <class R1, class R2> struct ratio_multiply; 190 template <class R1, class R2> struct ratio_divide; 192 template <class R1, class R2> 199 static const boost::intmax_t gcd_n1_n2 = mpl::gcd_c<boost::intmax_t, R1::num, R2::num>::value; 200 static const boost::intmax_t gcd_d1_d2 = mpl::gcd_c<boost::intmax_t, R1::den, R2::den>::value; 205 ratio<gcd_n1_n2, R1::den / gcd_d1_d2>, 210 boost::ratio_detail::br_mul<R1::num / gcd_n1_n2, R2::den / gcd_d1_d2>::value, 211 boost::ratio_detail::br_mul<R2::num / gcd_n1_n2, R1::den / gcd_d1_d2>::value [all …]
|
/third_party/boost/libs/hana/include/boost/hana/ext/std/ |
D | ratio.hpp | 89 template <typename R1, typename R2> 90 static constexpr auto apply(R1 const&, R2 const&) in apply() 91 { return hana::bool_c<std::ratio_equal<R1, R2>::value>; } in apply() 99 template <typename R1, typename R2> 100 static constexpr auto apply(R1 const&, R2 const&) in apply() 101 { return hana::bool_c<std::ratio_less<R1, R2>::value>; } in apply() 109 template <typename R1, typename R2> 110 static constexpr std::ratio_add<R1, R2> apply(R1 const&, R2 const&) in apply() 125 template <typename R1, typename R2> 126 static constexpr std::ratio_subtract<R1, R2> apply(R1 const&, R2 const&) in apply() [all …]
|
/third_party/boost/boost/hana/ext/std/ |
D | ratio.hpp | 89 template <typename R1, typename R2> 90 static constexpr auto apply(R1 const&, R2 const&) in apply() 91 { return hana::bool_c<std::ratio_equal<R1, R2>::value>; } in apply() 99 template <typename R1, typename R2> 100 static constexpr auto apply(R1 const&, R2 const&) in apply() 101 { return hana::bool_c<std::ratio_less<R1, R2>::value>; } in apply() 109 template <typename R1, typename R2> 110 static constexpr std::ratio_add<R1, R2> apply(R1 const&, R2 const&) in apply() 125 template <typename R1, typename R2> 126 static constexpr std::ratio_subtract<R1, R2> apply(R1 const&, R2 const&) in apply() [all …]
|
/third_party/boost/libs/ratio/test/ratio_arithmetic/ |
D | ratio_add_pass.cpp | 24 typedef boost::ratio<0> R1; in test() typedef 26 typedef boost::ratio_add<R1, R2> R; in test() 30 typedef boost::ratio<1, 1> R1; in test() typedef 32 typedef boost::ratio_add<R1, R2> R; in test() 38 typedef boost::ratio<1, 2> R1; in test() typedef 40 typedef boost::ratio_add<R1, R2> R; in test() 44 typedef boost::ratio<-1, 2> R1; in test() typedef 46 typedef boost::ratio_add<R1, R2> R; in test() 50 typedef boost::ratio<1, -2> R1; in test() typedef 52 typedef boost::ratio_add<R1, R2> R; in test() [all …]
|
D | ratio_power_pass.cpp | 26 typedef boost::ratio<1, 2> R1; in test() typedef 27 typedef boost::ratio_power<R1, 1> R; in test() 31 typedef boost::ratio<1, 2> R1; in test() typedef 32 typedef boost::ratio_power<R1, -1> R; in test() 36 typedef boost::ratio<1, 2> R1; in test() typedef 37 typedef boost::ratio_power<R1, 0> R; in test() 41 typedef boost::ratio<-1, 2> R1; in test() typedef 42 typedef boost::ratio_power<R1, 2> R; in test() 46 typedef boost::ratio<1, -2> R1; in test() typedef 47 typedef boost::ratio_power<R1, 2> R; in test() [all …]
|
D | ratio_subtract_pass.cpp | 25 typedef boost::ratio<0> R1; in test() typedef 27 typedef boost::ratio_subtract<R1, R2> R; in test() 31 typedef boost::ratio<1, 1> R1; in test() typedef 33 typedef boost::ratio_subtract<R1, R2> R; in test() 37 typedef boost::ratio<1, 2> R1; in test() typedef 39 typedef boost::ratio_subtract<R1, R2> R; in test() 43 typedef boost::ratio<-1, 2> R1; in test() typedef 45 typedef boost::ratio_subtract<R1, R2> R; in test() 49 typedef boost::ratio<1, -2> R1; in test() typedef 51 typedef boost::ratio_subtract<R1, R2> R; in test() [all …]
|
D | ratio_multiply_pass.cpp | 24 typedef boost::ratio<1, 1> R1; in test() typedef 26 typedef boost::ratio_multiply<R1, R2> R; in test() 30 typedef boost::ratio<1, 2> R1; in test() typedef 32 typedef boost::ratio_multiply<R1, R2> R; in test() 36 typedef boost::ratio<-1, 2> R1; in test() typedef 38 typedef boost::ratio_multiply<R1, R2> R; in test() 42 typedef boost::ratio<1, -2> R1; in test() typedef 44 typedef boost::ratio_multiply<R1, R2> R; in test() 48 typedef boost::ratio<1, 2> R1; in test() typedef 50 typedef boost::ratio_multiply<R1, R2> R; in test() [all …]
|
D | ratio_divide_pass.cpp | 24 typedef boost::ratio<1, 1> R1; in test() typedef 26 typedef boost::ratio_divide<R1, R2> R; in test() 30 typedef boost::ratio<1, 2> R1; in test() typedef 32 typedef boost::ratio_divide<R1, R2> R; in test() 36 typedef boost::ratio<-1, 2> R1; in test() typedef 38 typedef boost::ratio_divide<R1, R2> R; in test() 42 typedef boost::ratio<1, -2> R1; in test() typedef 44 typedef boost::ratio_divide<R1, R2> R; in test() 48 typedef boost::ratio<1, 2> R1; in test() typedef 50 typedef boost::ratio_divide<R1, R2> R; in test() [all …]
|