Lines Matching refs:ratio
2 //===---------------------------- ratio -----------------------------------===//
15 ratio synopsis
21 class ratio
26 typedef ratio<num, den> type;
29 // ratio arithmetic
35 // ratio comparison
44 typedef ratio<1, 1000000000000000000000000> yocto; // not supported
45 typedef ratio<1, 1000000000000000000000> zepto; // not supported
46 typedef ratio<1, 1000000000000000000> atto;
47 typedef ratio<1, 1000000000000000> femto;
48 typedef ratio<1, 1000000000000> pico;
49 typedef ratio<1, 1000000000> nano;
50 typedef ratio<1, 1000000> micro;
51 typedef ratio<1, 1000> milli;
52 typedef ratio<1, 100> centi;
53 typedef ratio<1, 10> deci;
54 typedef ratio< 10, 1> deca;
55 typedef ratio< 100, 1> hecto;
56 typedef ratio< 1000, 1> kilo;
57 typedef ratio< 1000000, 1> mega;
58 typedef ratio< 1000000000, 1> giga;
59 typedef ratio< 1000000000000, 1> tera;
60 typedef ratio< 1000000000000000, 1> peta;
61 typedef ratio< 1000000000000000000, 1> exa;
62 typedef ratio< 1000000000000000000000, 1> zetta; // not supported
63 typedef ratio<1000000000000000000000000, 1> yotta; // not supported
234 class _LIBCPP_TYPE_VIS_ONLY ratio
236 static_assert(__static_abs<_Num>::value >= 0, "ratio numerator is out of range");
237 static_assert(_Den != 0, "ratio divide by 0");
238 static_assert(__static_abs<_Den>::value > 0, "ratio denominator is out of range");
247 typedef ratio<num, den> type;
251 _LIBCPP_CONSTEXPR const intmax_t ratio<_Num, _Den>::num;
254 _LIBCPP_CONSTEXPR const intmax_t ratio<_Num, _Den>::den;
257 template <intmax_t _Num, intmax_t _Den> struct __is_ratio<ratio<_Num, _Den> > : true_type {};
259 typedef ratio<1LL, 1000000000000000000LL> atto;
260 typedef ratio<1LL, 1000000000000000LL> femto;
261 typedef ratio<1LL, 1000000000000LL> pico;
262 typedef ratio<1LL, 1000000000LL> nano;
263 typedef ratio<1LL, 1000000LL> micro;
264 typedef ratio<1LL, 1000LL> milli;
265 typedef ratio<1LL, 100LL> centi;
266 typedef ratio<1LL, 10LL> deci;
267 typedef ratio< 10LL, 1LL> deca;
268 typedef ratio< 100LL, 1LL> hecto;
269 typedef ratio< 1000LL, 1LL> kilo;
270 typedef ratio< 1000000LL, 1LL> mega;
271 typedef ratio< 1000000000LL, 1LL> giga;
272 typedef ratio< 1000000000000LL, 1LL> tera;
273 typedef ratio< 1000000000000000LL, 1LL> peta;
274 typedef ratio<1000000000000000000LL, 1LL> exa;
283 typedef typename ratio
310 typedef typename ratio
339 ratio<__gcd_n1_n2, _R1::den / __gcd_d1_d2>,
340 ratio
374 ratio<__gcd_n1_n2, _R1::den / __gcd_d1_d2>,
375 ratio
442 static const bool value = __ratio_less1<ratio<_R1::den, _M1>,
443 ratio<_R2::den, _M2>, !_Odd>::value;
462 …static const bool value = __ratio_less1<ratio<-_R2::num, _R2::den>, ratio<-_R1::num, _R1::den> >::…
484 typedef ratio<__static_gcd<_R1::num, _R2::num>::value,