/external/v8/test/mjsunit/ |
D | result-table-max.js | 25 var func = (function max(a,b) { return Math.max(a, b); }); function 27 (function max_L0(b) { return Math.max(true, b); }), 28 (function max_L1(b) { return Math.max(false, b); }), 29 (function max_L2(b) { return Math.max(null, b); }), 30 (function max_L3(b) { return Math.max(void 0, b); }), 31 (function max_L4(b) { return Math.max(0, b); }), 32 (function max_L5(b) { return Math.max(0.0, b); }), 33 (function max_L6(b) { return Math.max(-0, b); }), 34 (function max_L7(b) { return Math.max("", b); }), 35 (function max_L8(b) { return Math.max(-1, b); }), [all …]
|
D | math-min-max.js | 86 assertEquals(Number.NEGATIVE_INFINITY, Math.max()); 87 assertEquals(1, Math.max(1)); 88 assertEquals(2, Math.max(1, 2)); 89 assertEquals(2, Math.max(2, 1)); 90 assertEquals(3, Math.max(1, 2, 3)); 91 assertEquals(3, Math.max(3, 2, 1)); 92 assertEquals(3, Math.max(2, 3, 1)); 93 assertEquals(3.3, Math.max(1.1, 2.2, 3.3)); 94 assertEquals(3.3, Math.max(3.3, 2.2, 1.1)); 95 assertEquals(3.3, Math.max(2.2, 3.3, 1.1)); [all …]
|
/external/v8/test/webkit/ |
D | dfg-max-backwards-propagation-expected.txt | 24 Tests that the DFG knows that a function that appears like Math.max could potentially use value in … 29 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 30 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 31 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 32 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 33 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 34 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 35 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 36 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 37 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) [all …]
|
D | integer-extremes-expected.txt | 36 PASS max.toString() is "127" 37 PASS (max + 1).toString() is "128" 41 PASS max.toString() is "255" 42 PASS (max + 1).toString() is "256" 46 PASS max.toString() is "511" 47 PASS (max + 1).toString() is "512" 51 PASS max.toString() is "1023" 52 PASS (max + 1).toString() is "1024" 56 PASS max.toString() is "2047" 57 PASS (max + 1).toString() is "2048" [all …]
|
/external/opencv3/3rdparty/openexr/Imath/ |
D | ImathBox.h | 80 T max; variable 156 max = point; in Box() 164 max = maxT; in Box() 172 return (min == src.min && max == src.max); 180 return (min != src.min || max != src.max); 188 max = T(T::baseTypeMin()); in makeEmpty() 195 max = T(T::baseTypeMax()); in makeInfinite() 208 if (point[i] > max[i]) in extendBy() 209 max[i] = point[i]; in extendBy() 223 if (box.max[i] > max[i]) in extendBy() [all …]
|
D | ImathColorAlgo.h | 76 Vec3<double> v = Vec3<double>(hsv.x / double(limits<T>::max()), in hsv2rgb() 77 hsv.y / double(limits<T>::max()), in hsv2rgb() 78 hsv.z / double(limits<T>::max())); in hsv2rgb() 80 return Vec3<T>((T) (c.x * limits<T>::max()), in hsv2rgb() 81 (T) (c.y * limits<T>::max()), in hsv2rgb() 82 (T) (c.z * limits<T>::max())); in hsv2rgb() 99 Color4<double> v = Color4<double>(hsv.r / float(limits<T>::max()), in hsv2rgb() 100 hsv.g / float(limits<T>::max()), in hsv2rgb() 101 hsv.b / float(limits<T>::max()), in hsv2rgb() 102 hsv.a / float(limits<T>::max())); in hsv2rgb() [all …]
|
D | ImathBoxAlgo.h | 101 else if (p[i] > box.max[i]) in clip() 102 q[i] = box.max[i]; in clip() 138 Vec3<T> d2 = box.max - p; 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() 201 b = (S) m[j][i] * box.max[j]; in transform() 206 newBox.max[i] += b; in transform() 211 newBox.max[i] += a; in transform() [all …]
|
D | ImathInterval.h | 67 T max; variable 134 max = point; in Interval() 141 max = maxV; in Interval() 148 return (min == src.min && max == src.max); 155 min = limits<T>::max(); in makeEmpty() 156 max = limits<T>::min(); in makeEmpty() 166 if ( point > max ) in extendBy() 167 max = point; in extendBy() 177 if ( interval.max > max ) in extendBy() 178 max = interval.max; in extendBy() [all …]
|
D | ImathLimits.h | 57 #ifdef max 58 #undef max 120 static T max(); 136 static char max() {return CHAR_MAX;} 147 static signed char max() {return SCHAR_MAX;} 158 static unsigned char max() {return UCHAR_MAX;} 169 static short max() {return SHRT_MAX;} 180 static unsigned short max() {return USHRT_MAX;} 191 static int max() {return INT_MAX;} 202 static unsigned int max() {return UINT_MAX;} [all …]
|
/external/skia/src/opts/ |
D | SkBitmapProcState_matrixProcs_neon.cpp | 22 static inline int16x8_t sbpsm_clamp_tile8(int32x4_t low, int32x4_t high, unsigned max) { in sbpsm_clamp_tile8() argument 30 res = vminq_s16(res, vdupq_n_s16(max)); in sbpsm_clamp_tile8() 36 static inline int32x4_t sbpsm_clamp_tile4(int32x4_t f, unsigned max) { in sbpsm_clamp_tile4() argument 44 res = vminq_s32(res, vdupq_n_s32(max)); in sbpsm_clamp_tile4() 64 static inline int16x8_t sbpsm_repeat_tile8(int32x4_t low, int32x4_t high, unsigned max) { in sbpsm_repeat_tile8() argument 72 tmpl = vmull_u16(vget_low_u16(res), vdup_n_u16(max+1)); in sbpsm_repeat_tile8() 73 tmph = vmull_u16(vget_high_u16(res), vdup_n_u16(max+1)); in sbpsm_repeat_tile8() 82 static inline int32x4_t sbpsm_repeat_tile4(int32x4_t f, unsigned max) { in sbpsm_repeat_tile4() argument 90 tmp = vmull_u16(res, vdup_n_u16(max+1)); in sbpsm_repeat_tile4() 99 static inline int32x4_t sbpsm_repeat_tile4_low_bits(int32x4_t fx, unsigned max) { in sbpsm_repeat_tile4_low_bits() argument [all …]
|
/external/e2fsprogs/tests/f_h_reindex/ |
D | expect.1 | 5 Problem in HTREE directory inode 16001: block #1 has bad max hash 7 Problem in HTREE directory inode 16001: block #2 has bad max hash 9 Problem in HTREE directory inode 16001: block #3 has bad max hash 11 Problem in HTREE directory inode 16001: block #4 has bad max hash 13 Problem in HTREE directory inode 16001: block #5 has bad max hash 15 Problem in HTREE directory inode 16001: block #6 has bad max hash 17 Problem in HTREE directory inode 16001: block #7 has bad max hash 21 Problem in HTREE directory inode 24001: block #1 has bad max hash 22 Problem in HTREE directory inode 24001: block #2 has bad max hash 24 Problem in HTREE directory inode 24001: block #3 has bad max hash [all …]
|
/external/fio/ |
D | io_u_queue.c | 21 ring->max = nr + 1; in io_u_rinit() 22 if (ring->max & (ring->max - 1)) { in io_u_rinit() 23 ring->max--; in io_u_rinit() 24 ring->max |= ring->max >> 1; in io_u_rinit() 25 ring->max |= ring->max >> 2; in io_u_rinit() 26 ring->max |= ring->max >> 4; in io_u_rinit() 27 ring->max |= ring->max >> 8; in io_u_rinit() 28 ring->max |= ring->max >> 16; in io_u_rinit() 29 ring->max++; in io_u_rinit() 32 ring->ring = calloc(ring->max, sizeof(struct io_u *)); in io_u_rinit()
|
/external/regex-re2/re2/testing/ |
D | possible_match_test.cc | 27 const char* max; 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() 122 EXPECT_EQ(t.max, max) << 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/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/util/ |
D | ValPixConverterTest.java | 57 int max = 100; 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() 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() 90 max = 100; in testValToPix() 92 assertEquals(0f, ValPixConverter.valToPix(-100, min, max, sizeInPix, false)); in testValToPix() [all …]
|
/external/bison/lib/ |
D | intprops.h | 165 #define INT_ADD_RANGE_OVERFLOW(a, b, min, max) \ argument 168 : (max) - (b) < (a)) 172 #define INT_SUBTRACT_RANGE_OVERFLOW(a, b, min, max) \ argument 174 ? (max) + (b) < (a) \ 179 #define INT_NEGATE_RANGE_OVERFLOW(a, min, max) \ argument 181 ? (a) < - (max) \ 188 #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ argument 191 ? (a) < (max) / (b) \ 199 : (max) / (b) < (a))) 203 #define INT_DIVIDE_RANGE_OVERFLOW(a, b, min, max) \ argument [all …]
|
/external/llvm/test/Transforms/LoopVectorize/ |
D | minmax_reduction.ll | 11 ; Turn this into a max reduction. Make sure we use a splat to initialize the 14 ; CHECK: %[[VAR:.*]] = insertelement <2 x i32> undef, i32 %max, i32 0 22 define i32 @max_red(i32 %max) { 28 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ] 31 %cmp3 = icmp sgt i32 %0, %max.red.08 32 %max.red.0 = select i1 %cmp3, i32 %0, i32 %max.red.08 39 ret i32 %max.red.0 42 ; Turn this into a max reduction. The select has its inputs reversed therefore 43 ; this is a max reduction. 51 define i32 @max_red_inverse_select(i32 %max) { [all …]
|
/external/clang/test/Analysis/ |
D | additive-folding-range-constraints.c | 165 int max = INT_MAX; in mixedComparisons9() local 167 clang_analyzer_eval((a + 2) <= (max - 5LL)); // expected-warning{{TRUE}} in mixedComparisons9() 176 unsigned max = UINT_MAX; in mixedSignedness1() local 177 clang_analyzer_eval(a < max); // expected-warning{{UNKNOWN}} in mixedSignedness1() 178 clang_analyzer_eval((a + 2) < max); // expected-warning{{UNKNOWN}} in mixedSignedness1() 179 clang_analyzer_eval((a + 2U) < max); // expected-warning{{UNKNOWN}} in mixedSignedness1() 183 unsigned max = UINT_MAX; in mixedSignedness2() local 184 clang_analyzer_eval(a <= max); // expected-warning{{TRUE}} in mixedSignedness2() 185 clang_analyzer_eval((a + 2) <= max); // expected-warning{{TRUE}} in mixedSignedness2() 186 clang_analyzer_eval((a + 2U) <= max); // expected-warning{{TRUE}} in mixedSignedness2() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/ |
D | BisectionSolver.java | 58 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 …]
|
D | MullerSolver.java | 66 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 125 if (f.value(max) == 0.0) { return max; } in solve() 128 verifyBracketing(min, max, f); in solve() 129 verifySequence(min, initial, max); in solve() [all …]
|
D | RiddersSolver.java | 65 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 122 if (f.value(max) == 0.0) { return max; } in solve() 125 verifyBracketing(min, max, f); in solve() 126 verifySequence(min, initial, max); in solve() [all …]
|
/external/libcxx/test/std/utilities/time/time.traits/time.traits.duration_values/ |
D | max.pass.cpp | 22 assert(std::chrono::duration_values<int>::max() == in main() 23 std::numeric_limits<int>::max()); in main() 24 assert(std::chrono::duration_values<double>::max() == in main() 25 std::numeric_limits<double>::max()); in main() 26 assert(std::chrono::duration_values<Rep>::max() == in main() 27 std::numeric_limits<Rep>::max()); in main() 29 static_assert(std::chrono::duration_values<int>::max() == in main() 30 std::numeric_limits<int>::max(), ""); in main() 31 static_assert(std::chrono::duration_values<double>::max() == in main() 32 std::numeric_limits<double>::max(), ""); in main() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowProgressBar.java | 13 private int max = 100; field in ShadowProgressBar 20 final int max = attributeSet.getAttributeIntValue("android", "max", this.max); in applyAttributes() local 22 if (max >= 0) in applyAttributes() 23 setMax(max); in applyAttributes() 27 public void setMax(int max) { in setMax() argument 28 this.max = max; in setMax() 29 if (progress > max) { in setMax() 30 progress = max; in setMax() 36 return max; in getMax() 41 if (!isIndeterminate()) this.progress = Math.min(max, progress); in setProgress() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ |
D | eval.pass.cpp | 31 std::vector<D::result_type> u(d.max()+1); in main() 35 assert(d.min() <= v && v <= d.max()); in main() 39 for (int i = 0; i <= d.max(); ++i) in main() 49 std::vector<D::result_type> u(d.max()+1); in main() 53 assert(d.min() <= v && v <= d.max()); in main() 57 for (int i = 0; i <= d.max(); ++i) in main() 67 std::vector<D::result_type> u(d.max()+1); in main() 71 assert(d.min() <= v && v <= d.max()); in main() 75 for (int i = 0; i <= d.max(); ++i) in main() 85 std::vector<D::result_type> u(d.max()+1); in main() [all …]
|
/external/libchrome/base/numerics/ |
D | safe_numerics_unittest.cc | 57 return SrcLimits::max(); in GetMaxConvertibleToFloat() 58 Src max = SrcLimits::max() / 2 + (SrcLimits::is_integer ? 1 : 0); in GetMaxConvertibleToFloat() local 59 while (max != static_cast<Src>(static_cast<Dst>(max))) { in GetMaxConvertibleToFloat() 60 max /= 2; in GetMaxConvertibleToFloat() 62 return static_cast<Dst>(max); in GetMaxConvertibleToFloat() 93 CheckedNumeric<Dst>(DstLimits::max()) + -1); in TestSpecializedArithmetic() 98 CheckedNumeric<Dst>(-DstLimits::max()) + -DstLimits::max()); in TestSpecializedArithmetic() 106 CheckedNumeric<Dst>(DstLimits::max()) - -DstLimits::max()); in TestSpecializedArithmetic() 109 CheckedNumeric<Dst>(-DstLimits::max()) - DstLimits::max()); in TestSpecializedArithmetic() 124 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(DstLimits::max()) % 2); in TestSpecializedArithmetic() [all …]
|
/external/libweave/third_party/chromium/base/numerics/ |
D | safe_numerics_unittest.cc | 53 return SrcLimits::max(); in GetMaxConvertibleToFloat() 54 Src max = SrcLimits::max() / 2 + (SrcLimits::is_integer ? 1 : 0); in GetMaxConvertibleToFloat() local 55 while (max != static_cast<Src>(static_cast<Dst>(max))) { in GetMaxConvertibleToFloat() 56 max /= 2; in GetMaxConvertibleToFloat() 58 return static_cast<Dst>(max); in GetMaxConvertibleToFloat() 89 CheckedNumeric<Dst>(DstLimits::max()) + -1); in TestSpecializedArithmetic() 94 CheckedNumeric<Dst>(-DstLimits::max()) + -DstLimits::max()); in TestSpecializedArithmetic() 102 CheckedNumeric<Dst>(DstLimits::max()) - -DstLimits::max()); in TestSpecializedArithmetic() 105 CheckedNumeric<Dst>(-DstLimits::max()) - DstLimits::max()); in TestSpecializedArithmetic() 120 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(DstLimits::max()) % 2); in TestSpecializedArithmetic() [all …]
|