/libcore/ojluni/src/main/java/sun/misc/ |
D | FpUtils.java | 271 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/luni/src/main/java/libcore/util/ |
D | FP16.java | 310 short xBits = isNaN(x) ? NaN : x; in compare() 311 short yBits = isNaN(y) ? NaN : y; in compare() 352 if (isNaN((short) result)) { in rint() 396 if (isNaN((short) result)) { in ceil() 440 if (isNaN((short) result)) { in floor() 501 if (isNaN(x)) return NaN; in min() 502 if (isNaN(y)) return NaN; in min() 530 if (isNaN(x)) return NaN; in max() 531 if (isNaN(y)) return NaN; in max() 556 if (isNaN(x)) return false; in less() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 130 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 …]
|
D | MathTest.java | 123 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 …]
|
D | FloatTest.java | 281 assertTrue("NAN check failed", new Float(Float.NaN).isNaN() in test_isNaN() 282 && !(new Float(1.0f).isNaN())); in test_isNaN() 290 assertTrue("NaN check failed", Float.isNaN(Float.NaN) && !(Float.isNaN(12.09f))); in test_isNaNF()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidMathTest.java | 155 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 …]
|
D | OldAndroidStrictMathTest.java | 95 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 …]
|
D | OldFloatTest.java | 83 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()
|
D | OldDoubleTest.java | 66 assertFalse("Doesn't return false value", Double.isNaN(new Double(Double.MAX_VALUE))); in test_isNaND()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Math.java | 1689 return (d == 0.0 || Double.isNaN(d))?d:copySign(1.0, d); in signum() 1710 return (f == 0.0f || Float.isNaN(f))?f:copySign(1.0f, f); in signum() 2055 if (Double.isNaN(start) || Double.isNaN(direction)) { in nextAfter() 2154 if (Float.isNaN(start) || Double.isNaN(direction)) { in nextAfter() 2227 if( Double.isNaN(d) || d == Double.POSITIVE_INFINITY) in nextUp() 2262 if( Float.isNaN(f) || f == FloatConsts.POSITIVE_INFINITY) in nextUp() 2297 if (Double.isNaN(d) || d == Double.NEGATIVE_INFINITY) in nextDown() 2334 if (Float.isNaN(f) || f == Float.NEGATIVE_INFINITY) in nextDown()
|
D | Float.java | 462 public static boolean isNaN(float v) { in isNaN() method in Float 542 public boolean isNaN() { in isNaN() method in Float 543 return isNaN(value); in isNaN()
|
D | Double.java | 549 public static boolean isNaN(double v) { in isNaN() method in Double 618 public boolean isNaN() { in isNaN() method in Double 619 return isNaN(value); in isNaN()
|
D | StrictMath.java | 1497 return Math.copySign(magnitude, (Double.isNaN(sign)?1.0d:sign)); in copySign() 1513 return Math.copySign(magnitude, (Float.isNaN(sign)?1.0f:sign)); in copySign()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 120 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/main/java/java/nio/ |
D | FloatBuffer.java | 808 return (x == y) || (Float.isNaN(x) && Float.isNaN(y)); in equals() 851 Float.isNaN(x) ? (Float.isNaN(y) ? 0 : +1) : -1); in compare()
|
D | DoubleBuffer.java | 808 return (x == y) || (Double.isNaN(x) && Double.isNaN(y)); in equals() 848 Double.isNaN(x) ? (Double.isNaN(y) ? 0 : +1) : -1); in compare()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | FpUtils.java | 74 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/sdk/nullability/java/lang/ |
D | Double.annotated.java | 47 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
|
D | Float.annotated.java | 49 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/annotations/hiddenapi/java/lang/ |
D | Double.java | 64 public static boolean isNaN(double v) { in isNaN() method in Double 76 public boolean isNaN() { in isNaN() method in Double
|
D | Float.java | 67 public static boolean isNaN(float v) { in isNaN() method in Float 79 public boolean isNaN() { in isNaN() method in Float
|
/libcore/ojluni/src/main/java/java/util/ |
D | DoubleSummaryStatistics.java | 154 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in getSum()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ByteBufferTest.java | 913 if (!(Double.isNaN(bytes2double(bytes, buf.order())) && Double in testAsDoubleBuffer() 914 .isNaN(value))) { in testAsDoubleBuffer() 927 if (!(Double.isNaN(bytes2double(bytes, buf.order())) && Double in testAsDoubleBuffer() 928 .isNaN(value))) { in testAsDoubleBuffer() 976 if (!(Float.isNaN(bytes2float(bytes, buf.order())) && Float in testAsFloatBuffer() 977 .isNaN(value))) { in testAsFloatBuffer() 990 if (!(Float.isNaN(bytes2float(bytes, buf.order())) && Float in testAsFloatBuffer() 991 .isNaN(value))) { in testAsFloatBuffer() 1353 if (!(Double.isNaN(bytes2double(bytes, buf.order())) && Double in testGetDouble() 1354 .isNaN(value))) { in testGetDouble() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ChoiceFormatTest.java | 314 assertTrue("Not NaN", Double.isNaN(ChoiceFormat.nextDouble(Double.NaN))); in test_nextDoubleD() 346 assertTrue("Incorrect result", Double.isNaN(f1.parse("12one", pos) in test_parseLjava_lang_StringLjava_text_ParsePosition() 364 assertTrue("Not NaN", Double.isNaN(ChoiceFormat in test_previousDoubleD()
|
/libcore/json/src/main/java/org/json/ |
D | JSON.java | 24 if (Double.isInfinite(d) || Double.isNaN(d)) { in checkDouble()
|