Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 41) sorted by relevance

12

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/ratio/ratio.comparison/
Dratio_less.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
22 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
23 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
27 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
28 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
32 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
33 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
37 typedef std::ratio<1, 1> R1; in main()
38 typedef std::ratio<1, -1> R2; in main()
[all …]
Dratio_greater_equal.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
22 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
23 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
27 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
28 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
32 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
33 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
37 typedef std::ratio<1, 1> R1; in main()
38 typedef std::ratio<1, -1> R2; in main()
[all …]
Dratio_greater.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
22 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
23 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
27 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
28 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
32 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
33 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
37 typedef std::ratio<1, 1> R1; in main()
38 typedef std::ratio<1, -1> R2; in main()
[all …]
Dratio_not_equal.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
22 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
23 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
27 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
28 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
32 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
33 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
37 typedef std::ratio<1, 1> R1; in main()
38 typedef std::ratio<1, -1> R2; in main()
[all …]
Dratio_equal.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
22 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
23 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
27 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
28 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
32 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
33 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
37 typedef std::ratio<1, 1> R1; in main()
38 typedef std::ratio<1, -1> R2; in main()
[all …]
Dratio_less_equal.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
22 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
23 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
27 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
28 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
32 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
33 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
37 typedef std::ratio<1, 1> R1; in main()
38 typedef std::ratio<1, -1> R2; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/ratio/ratio.arithmetic/
Dratio_add.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
42 typedef std::ratio<-1, 1> R2; in main()
[all …]
Dratio_subtract.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
42 typedef std::ratio<-1, 1> R2; in main()
[all …]
Dratio_multiply.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
42 typedef std::ratio<-1, 1> R2; in main()
[all …]
Dratio_divide.pass.cpp17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
42 typedef std::ratio<-1, 1> R2; in main()
[all …]
Dratio_subtract.fail.cpp16 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
17 typedef std::ratio<1, 1> R2; in main()
Dratio_multiply.fail.cpp16 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
17 typedef std::ratio<2, 1> R2; in main()
Dratio_divide.fail.cpp16 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
17 typedef std::ratio<1, 2> R2; in main()
Dratio_add.fail.cpp16 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
17 typedef std::ratio<1, 1> R2; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.specializations/
Dduration.pass.cpp30 test<std::chrono::duration<int, std::ratio<1, 100> >, in main()
31 std::chrono::duration<long, std::ratio<1, 1000> >, in main()
32 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
33 test<std::chrono::duration<long, std::ratio<1, 100> >, in main()
34 std::chrono::duration<int, std::ratio<1, 1000> >, in main()
35 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
36 test<std::chrono::duration<char, std::ratio<1, 30> >, in main()
37 std::chrono::duration<short, std::ratio<1, 1000> >, in main()
38 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main()
39 test<std::chrono::duration<double, std::ratio<21, 1> >, in main()
[all …]
Dtime_point.pass.cpp34 test<std::chrono::duration<int, std::ratio<1, 100> >, in main()
35 std::chrono::duration<long, std::ratio<1, 1000> >, in main()
36 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
37 test<std::chrono::duration<long, std::ratio<1, 100> >, in main()
38 std::chrono::duration<int, std::ratio<1, 1000> >, in main()
39 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
40 test<std::chrono::duration<char, std::ratio<1, 30> >, in main()
41 std::chrono::duration<short, std::ratio<1, 1000> >, in main()
42 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main()
43 test<std::chrono::duration<double, std::ratio<21, 1> >, in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
Dop_+.pass.cpp36 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
37 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
38 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main()
42 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
43 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
44 std::chrono::duration<double, std::ratio<1, 15> > r = s1 + s2; in main()
61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
62 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
63 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main()
67 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
[all …]
Dop_-.pass.cpp37 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main()
43 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
44 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
45 std::chrono::duration<double, std::ratio<1, 15> > r = s1 - s2; in main()
62 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
63 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
64 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main()
68 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
[all …]
Dop_divide_duration.pass.cpp35 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main()
36 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
40 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main()
41 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
56 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main()
57 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main()
62 constexpr std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
Dop_mod_duration.pass.cpp37 std::chrono::duration<int, std::ratio<3, 5> > s1(6); in main()
38 std::chrono::duration<int, std::ratio<2, 3> > s2(3); in main()
39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2; in main()
56 constexpr std::chrono::duration<int, std::ratio<3, 5> > s1(6); in main()
57 constexpr std::chrono::duration<int, std::ratio<2, 3> > s2(3); in main()
58 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dratio2 //===---------------------------- 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;
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.comparisons/
Dop_equal.pass.cpp54 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
55 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
60 std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main()
61 std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main()
66 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
67 std::chrono::duration<double, std::ratio<3, 5> > s2(10); in main()
97 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
98 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
103 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main()
104 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main()
[all …]
Dop_less.pass.cpp72 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
73 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
80 std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main()
81 std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main()
88 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
89 std::chrono::duration<double, std::ratio<3, 5> > s2(10); in main()
129 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
130 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
137 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main()
138 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cons/
Drep.pass.cpp37 test<std::chrono::duration<int, std::ratio<3, 2> > >(5); in main()
38 test<std::chrono::duration<Rep, std::ratio<3, 2> > >(Rep(3)); in main()
39 test<std::chrono::duration<double, std::ratio<2, 3> > >(5.5); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cast/
Dtime_point_cast.pass.cpp65 std::chrono::duration<double, std::ratio<3600> >(7265./3600)); in main()
66 test(std::chrono::duration<int, std::ratio<2, 3> >(9), in main()
67 std::chrono::duration<int, std::ratio<3, 5> >(10)); in main()
76 typedef std::chrono::duration<int, std::ratio<3, 5>> T1; in main()
77 test_constexpr<std::chrono::duration<int, std::ratio<2, 3>>, 9, T1, 10> (); in main()

12