Home
last modified time | relevance | path

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

12345678910>>...14

/external/libcxx/test/std/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_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_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_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_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 …]
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 …]
/external/libcxx/test/std/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 …]
/external/libcxx/test/std/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 …]
/external/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 …]
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/
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_+.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_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()
/external/libcxx/test/std/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 …]
/external/autotest/client/common_lib/perf_expectations/
Dexpectation_checker.py107 ratio = 1 - divide(trace_perf_value, improve)
108 return 'improve', ratio
110 ratio = divide(trace_perf_value, regress) - 1
111 return 'regress', ratio
115 ratio = divide(trace_perf_value, improve) - 1
116 return 'improve', ratio
118 ratio = 1 - divide(trace_perf_value, regress)
119 return 'regress', ratio
140 key, ratio = self.compare_one_trace(trace, perf_results[trace])
141 ret_val[key].append((trace, ratio))
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/surfaceview/
DRatioResolutionStrategy.java27 private final float ratio; field in RatioResolutionStrategy
29 public RatioResolutionStrategy (float ratio) { in RatioResolutionStrategy() argument
30 this.ratio = ratio; in RatioResolutionStrategy()
34 this.ratio = width / height; in RatioResolutionStrategy()
43 final float desiredRatio = ratio; in calcMeasures()
/external/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/
Dratio_less_v.pass.cpp24 typedef std::ratio<1, 2> R1; in main()
25 typedef std::ratio<1, 1> R2; in main()
38 typedef std::ratio<1, 1> R1; in main()
39 typedef std::ratio<1, 1> R2; in main()
48 typedef std::ratio<2, 1> R1; in main()
49 typedef std::ratio<1, 1> R2; in main()
Dratio_less_equal_v.pass.cpp24 typedef std::ratio<1, 2> R1; in main()
25 typedef std::ratio<1, 1> R2; in main()
38 typedef std::ratio<1, 1> R1; in main()
39 typedef std::ratio<1, 1> R2; in main()
48 typedef std::ratio<2, 1> R1; in main()
49 typedef std::ratio<1, 1> R2; in main()
Dratio_greater_v.pass.cpp24 typedef std::ratio<1, 2> R1; in main()
25 typedef std::ratio<1, 1> R2; in main()
38 typedef std::ratio<1, 1> R1; in main()
39 typedef std::ratio<1, 1> R2; in main()
48 typedef std::ratio<2, 1> R1; in main()
49 typedef std::ratio<1, 1> R2; in main()
Dratio_greater_equal_v.pass.cpp24 typedef std::ratio<1, 2> R1; in main()
25 typedef std::ratio<1, 1> R2; in main()
40 typedef std::ratio<1, 1> R1; in main()
41 typedef std::ratio<1, 1> R2; in main()
51 typedef std::ratio<2, 1> R1; in main()
52 typedef std::ratio<1, 1> R2; in main()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/joints/
DPulleyJointDef.java35 Vector2 anchorB, float ratio) { in initialize() argument
44 this.ratio = ratio; in initialize()
45 float C = lengthA + ratio * lengthB; in initialize()
67 public float ratio = 1; field in PulleyJointDef
81 jd.ratio = ratio; in toJBox2d()

12345678910>>...14