Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 3269) sorted by relevance

12345678910>>...131

/external/v8/test/mjsunit/
Dresult-table-min.js25 var func = (function min(a,b) { return Math.min(a, b); }); function
27 (function min_L0(b) { return Math.min(true, b); }),
28 (function min_L1(b) { return Math.min(false, b); }),
29 (function min_L2(b) { return Math.min(null, b); }),
30 (function min_L3(b) { return Math.min(void 0, b); }),
31 (function min_L4(b) { return Math.min(0, b); }),
32 (function min_L5(b) { return Math.min(0.0, b); }),
33 (function min_L6(b) { return Math.min(-0, b); }),
34 (function min_L7(b) { return Math.min("", b); }),
35 (function min_L8(b) { return Math.min(-1, b); }),
[all …]
Dmath-min-max.js32 assertEquals(Infinity, Math.min());
33 assertEquals(1, Math.min(1));
34 assertEquals(1, Math.min(1, 2));
35 assertEquals(1, Math.min(2, 1));
36 assertEquals(1, Math.min(1, 2, 3));
37 assertEquals(1, Math.min(3, 2, 1));
38 assertEquals(1, Math.min(2, 3, 1));
39 assertEquals(1.1, Math.min(1.1, 2.2, 3.3));
40 assertEquals(1.1, Math.min(3.3, 2.2, 1.1));
41 assertEquals(1.1, Math.min(2.2, 3.3, 1.1));
[all …]
/external/v8/test/webkit/
Ddfg-min-backwards-propagation-expected.txt24 Tests that the DFG knows that a function that appears like Math.min could potentially use value in …
29 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
30 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
31 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
32 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
33 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
34 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
35 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
36 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
37 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
[all …]
Dinteger-extremes-expected.txt34 PASS min.toString() is "-128"
35 PASS (min - 1).toString() is "-129"
39 PASS min.toString() is "-256"
40 PASS (min - 1).toString() is "-257"
44 PASS min.toString() is "-512"
45 PASS (min - 1).toString() is "-513"
49 PASS min.toString() is "-1024"
50 PASS (min - 1).toString() is "-1025"
54 PASS min.toString() is "-2048"
55 PASS (min - 1).toString() is "-2049"
[all …]
/external/opencv3/3rdparty/openexr/Imath/
DImathBox.h79 T min;
155 min = point; in Box()
163 min = minT; in Box()
172 return (min == src.min && max == src.max);
180 return (min != src.min || max != src.max);
187 min = T(T::baseTypeMax()); in makeEmpty()
194 min = T(T::baseTypeMin()); in makeInfinite()
203 for (unsigned int i = 0; i < min.dimensions(); i++) in extendBy()
205 if (point[i] < min[i]) in extendBy()
206 min[i] = point[i]; in extendBy()
[all …]
DImathInterval.h66 T min;
133 min = point; in Interval()
140 min = minV; in Interval()
148 return (min == src.min && max == src.max);
155 min = limits<T>::max(); in makeEmpty()
156 max = limits<T>::min(); in makeEmpty()
163 if ( point < min ) in extendBy()
164 min = point; in extendBy()
174 if ( interval.min < min ) in extendBy()
175 min = interval.min; in extendBy()
[all …]
DImathBoxAlgo.h97 for (int i = 0; i < int (box.min.dimensions()); i++) in clip()
99 if (p[i] < box.min[i]) in clip()
100 q[i] = box.min[i]; in clip()
137 Vec3<T> d1 = p - box.min; in closestPointOnBox()
146 q.x = (d1.x < d2.x)? box.min.x: box.max.x; in closestPointOnBox()
150 q.y = (d1.y < d2.y)? box.min.y: box.max.y; in closestPointOnBox()
154 q.z = (d1.z < d2.z)? box.min.z: box.max.z; in closestPointOnBox()
194 newBox.min[i] = newBox.max[i] = (S) m[3][i]; in transform()
200 a = (S) m[j][i] * box.min[j]; in transform()
205 newBox.min[i] += a; in transform()
[all …]
DImathLimits.h54 #ifdef min
55 #undef min
119 static T min();
135 static char min() {return CHAR_MIN;}
146 static signed char min() {return SCHAR_MIN;}
157 static unsigned char min() {return 0;}
168 static short min() {return SHRT_MIN;}
179 static unsigned short min() {return 0;}
190 static int min() {return INT_MIN;}
201 static unsigned int min() {return 0;}
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/math/collision/
DBoundingBox.java34 public final Vector3 min = new Vector3(); field in BoundingBox
59 return out.set(min.x, min.y, min.z); in getCorner000()
63 return out.set(min.x, min.y, max.z); in getCorner001()
67 return out.set(min.x, max.y, min.z); in getCorner010()
71 return out.set(min.x, max.y, max.z); in getCorner011()
75 return out.set(max.x, min.y, min.z); in getCorner100()
79 return out.set(max.x, min.y, max.z); in getCorner101()
83 return out.set(max.x, max.y, min.z); in getCorner110()
111 return out.set(min); in getMin()
145 return this.set(bounds.min, bounds.max); in set()
[all …]
/external/clang/test/Analysis/
Dadditive-folding-range-constraints.c75 int min = INT_MIN; in mixedComparisons1() local
77 clang_analyzer_eval((a - 2) >= (min + 5LL)); // expected-warning{{TRUE}} in mixedComparisons1()
143 int min = INT_MIN; in mixedComparisons7() local
145 clang_analyzer_eval((a + 2) >= (min + 5LL)); // expected-warning{{TRUE}} in mixedComparisons7()
204 int min = INT_MIN; in mixedSignedness5() local
205 clang_analyzer_eval(a < min); // expected-warning{{UNKNOWN}} in mixedSignedness5()
206 clang_analyzer_eval((a + 2) < min); // expected-warning{{UNKNOWN}} in mixedSignedness5()
207 clang_analyzer_eval((a + 2U) < min); // expected-warning{{UNKNOWN}} in mixedSignedness5()
211 int min = INT_MIN; in mixedSignedness6() local
212 clang_analyzer_eval(a <= min); // expected-warning{{UNKNOWN}} in mixedSignedness6()
[all …]
/external/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/
Dgenerate_canonical.pass.cpp25 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
32 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
39 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
46 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
53 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
61 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
68 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
76 (16807 - E::min() + in main()
77 (282475249 - E::min()) * (E::max() - E::min() + F(1))) / in main()
78 ((E::max() - E::min() + F(1)) * (E::max() - E::min() + F(1)))); in main()
[all …]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/util/
DValPixConverterTest.java56 int min = 0; in testValToPix() local
61 assertEquals(50.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
66 assertEquals(25.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
70 assertEquals(0.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
74 assertEquals(100.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
77 min = -100; in testValToPix()
79 assertEquals(50.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
83 assertEquals(0.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
87 assertEquals(50.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
89 min = -100; in testValToPix()
[all …]
/external/regex-re2/re2/testing/
Dpossible_match_test.cc26 const char* min; member
107 string min, max; in TEST() local
114 CHECK(prog->PossibleMatchRange(&min, &max, t.maxlen)) in TEST()
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen)); in TEST()
121 EXPECT_EQ(t.min, min) << t.regexp; in TEST()
129 string min, max; in TEST() local
132 EXPECT_FALSE(RE2("abc").PossibleMatchRange(&min, &max, 0)); in TEST()
138 PossibleMatchRange(&min, &max, 10)) in TEST()
139 << "min=" << CEscape(min) << ", max=" << CEscape(max); in TEST()
141 PossibleMatchRange(&min, &max, 10)) in TEST()
[all …]
/external/e2fsprogs/tests/f_h_reindex/
Dexpect.16 Problem in HTREE directory inode 16001: block #2 has bad min hash
8 Problem in HTREE directory inode 16001: block #3 has bad min hash
10 Problem in HTREE directory inode 16001: block #4 has bad min hash
12 Problem in HTREE directory inode 16001: block #5 has bad min hash
14 Problem in HTREE directory inode 16001: block #6 has bad min hash
16 Problem in HTREE directory inode 16001: block #7 has bad min hash
18 Problem in HTREE directory inode 16001: block #8 has bad min hash
23 Problem in HTREE directory inode 24001: block #3 has bad min hash
26 Problem in HTREE directory inode 24001: block #5 has bad min hash
28 Problem in HTREE directory inode 24001: block #6 has bad min hash
[all …]
/external/bison/lib/
Dintprops.h165 #define INT_ADD_RANGE_OVERFLOW(a, b, min, max) \ argument
167 ? (a) < (min) - (b) \
172 #define INT_SUBTRACT_RANGE_OVERFLOW(a, b, min, max) \ argument
175 : (a) < (min) + (b))
179 #define INT_NEGATE_RANGE_OVERFLOW(a, min, max) \ argument
180 ((min) < 0 \
188 #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ argument
194 : (min) / (b) < (a)) \
198 ? (a) < (min) / (b) \
203 #define INT_DIVIDE_RANGE_OVERFLOW(a, b, min, max) \ argument
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
DBisectionSolver.java58 public double solve(double min, double max, double initial) in solve() argument
60 return solve(f, min, max); in solve()
65 public double solve(double min, double max) in solve() argument
67 return solve(f, min, max); in solve()
75 public double solve(final UnivariateRealFunction f, double min, double max, double initial) in solve() argument
77 return solve(f, min, max); in solve()
82 …public double solve(int maxEval, final UnivariateRealFunction f, double min, double max, double in… in solve() argument
84 return solve(maxEval, f, min, max); in solve()
89 public double solve(int maxEval, final UnivariateRealFunction f, double min, double max) in solve() argument
92 return solve(f, min, max); in solve()
[all …]
DBrentSolver.java97 public double solve(double min, double max) in solve() argument
99 return solve(f, min, max); in solve()
104 public double solve(double min, double max, double initial) in solve() argument
106 return solve(f, min, max, initial); in solve()
130 final double min, final double max, final double initial) in solve() argument
134 if ((initial < min) || (initial > max)) { in solve()
137 min, initial, max); in solve()
148 double yMin = f.value(min); in solve()
150 setResult(min, 0); in solve()
156 return solve(f, min, yMin, initial, yInitial, min, yMin); in solve()
[all …]
DRiddersSolver.java65 public double solve(final double min, final double max) in solve() argument
67 return solve(f, min, max); in solve()
72 public double solve(final double min, final double max, final double initial) in solve() argument
74 return solve(f, min, max, initial); in solve()
94 final double min, final double max, final double initial) in solve() argument
97 return solve(f, min, max, initial); in solve()
117 final double min, final double max, final double initial) in solve() argument
121 if (f.value(min) == 0.0) { return min; } in solve()
125 verifyBracketing(min, max, f); in solve()
126 verifySequence(min, initial, max); in solve()
[all …]
DMullerSolver.java66 public double solve(final double min, final double max) in solve() argument
68 return solve(f, min, max); in solve()
73 public double solve(final double min, final double max, final double initial) in solve() argument
75 return solve(f, min, max, initial); in solve()
96 final double min, final double max, final double initial) in solve() argument
99 return solve(f, min, max, initial); in solve()
120 final double min, final double max, final double initial) in solve() argument
124 if (f.value(min) == 0.0) { return min; } in solve()
128 verifyBracketing(min, max, f); in solve()
129 verifySequence(min, initial, max); in solve()
[all …]
DNewtonSolver.java62 public double solve(final double min, final double max) in solve() argument
64 return solve(f, min, max); in solve()
69 public double solve(final double min, final double max, final double startValue) in solve() argument
71 return solve(f, min, max, startValue); in solve()
88 final double min, final double max) in solve() argument
91 return solve(f, min, max); in solve()
108 final double min, final double max) in solve() argument
110 return solve(f, min, max, UnivariateRealSolverUtils.midpoint(min, max)); in solve()
129 final double min, final double max, final double startValue) in solve() argument
132 return solve(f, min, max, startValue); in solve()
[all …]
/external/mesa3d/src/glsl/builtins/ir/
Dmin.ir1 ((function min
6 ((return (expression float min (var_ref arg0) (var_ref arg1)))))
12 ((return (expression vec2 min (var_ref arg0) (var_ref arg1)))))
18 ((return (expression vec3 min (var_ref arg0) (var_ref arg1)))))
24 ((return (expression vec4 min (var_ref arg0) (var_ref arg1)))))
30 ((return (expression vec2 min (var_ref arg0) (var_ref arg1)))))
36 ((return (expression vec3 min (var_ref arg0) (var_ref arg1)))))
42 ((return (expression vec4 min (var_ref arg0) (var_ref arg1)))))
48 ((return (expression int min (var_ref arg0) (var_ref arg1)))))
54 ((return (expression ivec2 min (var_ref arg0) (var_ref arg1)))))
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DMathUtils.java179 public static float randomTriangular (float min, float max) { in randomTriangular() argument
180 return randomTriangular(min, max, (min + max) * 0.5f); in randomTriangular()
188 public static float randomTriangular (float min, float max, float mode) { in randomTriangular() argument
190 float d = max - min; in randomTriangular()
191 if (u <= (mode - min) / d) return min + (float)Math.sqrt(u * d * (mode - min)); in randomTriangular()
215 static public short clamp (short value, short min, short max) { in clamp() argument
216 if (value < min) return min; in clamp()
221 static public int clamp (int value, int min, int max) { in clamp() argument
222 if (value < min) return min; in clamp()
227 static public long clamp (long value, long min, long max) { in clamp() argument
[all …]
/external/deqp/framework/delibs/decpp/
DdeRandom.hpp48 float getFloat (float min, float max);
49 double getDouble (double min, double max);
50 int getInt (int min, int max);
79 inline float Random::getFloat (float min, float max) in getFloat() argument
81 DE_ASSERT(min <= max); in getFloat()
82 return min + (max-min)*getFloat(); in getFloat()
85 inline double Random::getDouble (double min, double max) in getDouble() argument
87 DE_ASSERT(min <= max); in getDouble()
88 return min + (max-min)*getDouble(); in getDouble()
91 inline int Random::getInt (int min, int max) in getInt() argument
[all …]
/external/vulkan-validation-layers/libs/glm/gtx/
Dextented_min_max.inl13 GLM_FUNC_QUALIFIER T min( function
18 return glm::min(glm::min(x, y), z);
22 GLM_FUNC_QUALIFIER C<T> min function
29 return glm::min(glm::min(x, y), z);
33 GLM_FUNC_QUALIFIER C<T> min function
40 return glm::min(glm::min(x, y), z);
44 GLM_FUNC_QUALIFIER T min function
52 return glm::min(glm::min(x, y), glm::min(z, w));
56 GLM_FUNC_QUALIFIER C<T> min function
64 return glm::min(glm::min(x, y), glm::min(z, w));
[all …]
/external/libcxx/test/std/algorithms/alg.sorting/alg.min.max/
Dmin_init_list.pass.cpp22 int i = std::min({2, 3, 1}); in main()
24 i = std::min({2, 1, 3}); in main()
26 i = std::min({3, 1, 2}); in main()
28 i = std::min({3, 2, 1}); in main()
30 i = std::min({1, 2, 3}); in main()
32 i = std::min({1, 3, 2}); in main()
36 static_assert(std::min({1, 3, 2}) == 1, ""); in main()
37 static_assert(std::min({2, 1, 3}) == 1, ""); in main()
38 static_assert(std::min({3, 2, 1}) == 1, ""); in main()

12345678910>>...131