Home
last modified time | relevance | path

Searched refs:isNaN (Results 1 – 25 of 61) sorted by relevance

123

/libcore/luni/src/main/java/libcore/util/
DFP16.java288 short xBits = isNaN(x) ? NaN : x; in compare()
289 short yBits = isNaN(y) ? NaN : y; in compare()
329 if (isNaN((short) result)) { in rint()
372 if (isNaN((short) result)) { in ceil()
415 if (isNaN((short) result)) { in floor()
474 if (isNaN(x)) return NaN; in min()
475 if (isNaN(y)) return NaN; in min()
502 if (isNaN(x)) return NaN; in max()
503 if (isNaN(y)) return NaN; in max()
527 if (isNaN(x)) return false; in less()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java271 public static boolean isNaN(double d) { in isNaN() method in FpUtils
272 return Double.isNaN(d); in isNaN()
287 public static boolean isNaN(float f) { in isNaN() method in FpUtils
288 return Float.isNaN(f); in isNaN()
304 return isNaN(arg1) || isNaN(arg2); in isUnordered()
320 return isNaN(arg1) || isNaN(arg2); in isUnordered()
346 if( isNaN(d) ) in ilogb()
416 if( isNaN(f) ) in ilogb()
/libcore/ojluni/src/test/java/lang/Math/
DTests.java45 if (!Float.isNaN(f)) { in toHexString()
53 if (!Double.isNaN(d)) { in toHexString()
92 if (Double.isNaN(d)) { in ilogb()
161 if (Float.isNaN(f)) { in ilogb()
220 return Float.isNaN(arg1) || Float.isNaN(arg2); in isUnordered()
234 return Double.isNaN(arg1) || Double.isNaN(arg2); in isUnordered()
381 Double.isNaN(difference) || in testUlpCore()
424 !Double.isNaN(expected)) { in testUlpDiffWithAbsBound()
446 if (!(result >= lowerBound) && !Double.isNaN(expected)) { in testUlpDiffWithLowerBound()
466 Double.isNaN(difference) || in testTolerance()
DPowTests.java172 if (Double.isNaN(y)) { in testCrossProduct()
185 assert Double.isNaN(x); in testCrossProduct()
196 assert Double.isNaN(x); in testCrossProduct()
202 } else if (Double.isNaN(x)) { // Now start switching on x in testCrossProduct()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java130 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath in test_cbrt_D()
195 assertTrue("The result should be NaN.", Double.isNaN(StrictMath in test_copySign_DD()
217 assertTrue("The result should be NaN.", Double.isNaN(StrictMath in test_copySign_DD()
260 assertTrue("The result should be NaN.", Float.isNaN(StrictMath in test_copySign_FF()
281 assertTrue("The result should be NaN.", Float.isNaN(StrictMath in test_copySign_FF()
323 assertTrue("Should return NaN", Double.isNaN(StrictMath in test_cosh_D()
369 assertTrue("Should return NaN", Double.isNaN(StrictMath.expm1(Double.NaN))); in test_expm1_D()
471 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(Double.NaN, in test_hypot_DD()
473 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(-345.2680, in test_hypot_DD()
521 assertTrue("Should return NaN", Double.isNaN(StrictMath in test_log10_D()
[all …]
DMathTest.java123 assertTrue(Double.isNaN(Math.cbrt(Double.NaN))); in test_cbrt_D()
179 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( in test_copySign_DD()
201 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( in test_copySign_DD()
251 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( in test_copySign_FF()
272 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( in test_copySign_FF()
309 assertTrue(Double.isNaN(Math.cosh(Double.NaN))); in test_cosh_D()
350 assertTrue("Should return NaN", Double.isNaN(Math.expm1(Double.NaN))); in test_expm1_D()
515 assertTrue("Should be NaN", Double.isNaN(Math.hypot(Double.NaN, in test_hypot_DD()
517 assertTrue("Should be NaN", Double.isNaN(Math.hypot(-345.2680, in test_hypot_DD()
561 assertTrue(Double.isNaN(Math.log10(Double.NaN))); in test_log10_D()
[all …]
/libcore/ojluni/src/main/java/java/nio/
DBufferMismatch.java165 if (av != bv && (!Float.isNaN(av) || !Float.isNaN(bv))) in mismatch()
228 if (av != bv && (!Double.isNaN(av) || !Double.isNaN(bv))) in mismatch()
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidMathTest.java155 assertTrue("Should return Double.NaN", Double.isNaN(Math in testCbrtD()
201 assertTrue(Double.isNaN(Math.cosh(Double.NaN))); in testCoshD()
236 assertTrue("Should return NaN", Double.isNaN(Math.expm1(Double.NaN))); in testExpm1D()
289 assertTrue("Should be NaN", Double.isNaN(Math.hypot(Double.NaN, in testHypotDD()
291 assertTrue("Should be NaN", Double.isNaN(Math.hypot(-345.2680, in testHypotDD()
326 assertTrue(Double.isNaN(Math.log10(Double.NaN))); in testLog10D()
327 assertTrue(Double.isNaN(Math.log10(-2541.05745687234187532))); in testLog10D()
328 assertTrue(Double.isNaN(Math.log10(-0.1))); in testLog10D()
345 assertTrue("Should return NaN", Double.isNaN(Math.log1p(Double.NaN))); in testLog1pD()
346 assertTrue("Should return NaN", Double.isNaN(Math.log1p(-32.0482175))); in testLog1pD()
[all …]
DOldAndroidStrictMathTest.java95 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath in testCbrtD()
150 assertTrue("Should return NaN", Double.isNaN(StrictMath in testCosh_D()
190 assertTrue("Should return NaN", Double.isNaN(StrictMath.expm1(Double.NaN))); in testExpm1D()
245 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(Double.NaN, in testHypotDD()
247 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(-345.2680, in testHypotDD()
286 assertTrue("Should return NaN", Double.isNaN(StrictMath in testLog10D()
288 assertTrue("Should return NaN", Double.isNaN(StrictMath in testLog10D()
317 assertTrue("Should return NaN", Double.isNaN(StrictMath in testLog1pD()
319 assertTrue("Should return NaN", Double.isNaN(StrictMath in testLog1pD()
437 assertTrue("Failed to round properly - NaN", Double.isNaN(StrictMath in testRintD()
[all …]
DOldFloatTest.java83 assertFalse(Float.isNaN(12.09f)); in test_isNaNF()
84 assertFalse(Float.isNaN(Float.MAX_VALUE)); in test_isNaNF()
85 assertFalse(Float.isNaN(Float.MIN_VALUE)); in test_isNaNF()
/libcore/ojluni/src/main/java/java/lang/
DFloat.java498 public static boolean isNaN(float v) { in isNaN() method in Float
599 public boolean isNaN() { in isNaN() method in Float
600 return isNaN(value); in isNaN()
790 if (!isNaN(value)) { in floatToIntBits()
DDouble.java673 public static boolean isNaN(double v) { in isNaN() method in Double
756 public boolean isNaN() { in isNaN() method in Double
757 return isNaN(value); in isNaN()
961 if (!isNaN(value)) { in doubleToLongBits()
DMath.java2414 if (Double.isNaN(min)) { in clamp()
2417 if (Double.isNaN(max)) { in clamp()
2455 if (Float.isNaN(min)) { in clamp()
2458 if (Float.isNaN(max)) { in clamp()
2534 if (Double.isNaN(a) || Double.isNaN(b) || Double.isNaN(c)) { in fma()
2771 if (d == 0.0 || Double.isNaN(d)) {
2801 if (f == 0.0f || Float.isNaN(f)) {
3435 if (Double.isNaN(d) || d == Double.NEGATIVE_INFINITY)
3475 if (Float.isNaN(f) || f == Float.NEGATIVE_INFINITY)
/libcore/luni/src/test/java/libcore/libcore/util/
DFP16Test.java120 assertFalse(FP16.isNaN(POSITIVE_INFINITY)); in testIsNaN()
121 assertFalse(FP16.isNaN(NEGATIVE_INFINITY)); in testIsNaN()
122 assertFalse(FP16.isNaN(POSITIVE_ZERO)); in testIsNaN()
123 assertFalse(FP16.isNaN(NEGATIVE_ZERO)); in testIsNaN()
124 assertTrue(FP16.isNaN(NaN)); in testIsNaN()
125 assertTrue(FP16.isNaN((short) 0x7c01)); in testIsNaN()
126 assertTrue(FP16.isNaN((short) 0x7c18)); in testIsNaN()
127 assertTrue(FP16.isNaN((short) 0xfc01)); in testIsNaN()
128 assertTrue(FP16.isNaN((short) 0xfc98)); in testIsNaN()
129 assertFalse(FP16.isNaN(MAX_VALUE)); in testIsNaN()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectAndSummaryStatisticsTest.java189 if (Double.isNaN(min) && Double.isNaN(max) && Double.isNaN(sum)) continue; in testDoubleStatistics()
190 if (!Double.isNaN(min) && !Double.isNaN(max) && !Double.isNaN(sum)) continue; in testDoubleStatistics()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFpUtils.java74 public static boolean isNaN(double d) { in isNaN() method in FpUtils
78 public static boolean isNaN(float f) { in isNaN() method in FpUtils
/libcore/ojluni/annotations/flagged_api/java/lang/
DDouble.annotated.java48 public static boolean isNaN(double v) { throw new RuntimeException("Stub!"); } in isNaN() method in Double
54 public boolean isNaN() { throw new RuntimeException("Stub!"); } in isNaN() method in Double
DFloat.annotated.java51 public static boolean isNaN(float v) { throw new RuntimeException("Stub!"); } in isNaN() method in Float
57 public boolean isNaN() { throw new RuntimeException("Stub!"); } in isNaN() method in Float
/libcore/ojluni/src/main/java/java/util/
DDoubleSummaryStatistics.java120 var ncount = DoubleStream.of(min, max, sum).filter(Double::isNaN).count(); in DoubleSummaryStatistics()
247 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in getSum()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DFloat.java67 public static boolean isNaN(float v) { in isNaN() method in Float
79 public boolean isNaN() { in isNaN() method in Float
DDouble.java64 public static boolean isNaN(double v) { in isNaN() method in Double
76 public boolean isNaN() { in isNaN() method in Double
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java47 public static boolean isNaN(double v) { throw new RuntimeException("Stub!"); } in isNaN() method in Double
53 public boolean isNaN() { throw new RuntimeException("Stub!"); } in isNaN() method in Double
DFloat.annotated.java49 public static boolean isNaN(float v) { throw new RuntimeException("Stub!"); } in isNaN() method in Float
55 public boolean isNaN() { throw new RuntimeException("Stub!"); } in isNaN() method in Float
/libcore/ojluni/src/test/java/util/Arrays/
DFloatDoubleOrder.java66 if (Double.isNaN(sortedDbl[i])) in test()
93 if (Float.isNaN(sortedFlt[i])) in test()
/libcore/ojluni/src/test/java/lang/Float/
DBitwiseConversionTest.java53 Assert.assertTrue(isNaN(value), "Invalid input " + y + "yielded non-NaN" + value); in testNanCase()

123