Home
last modified time | relevance | path

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

12

/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/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 …]
DFloatTest.java281 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()
DDoubleTest.java388 assertTrue("NAN returned false", d.isNaN()); in test_isNaN()
390 assertTrue("Non NAN returned true", !d.isNaN()); in test_isNaN()
400 assertTrue("NAN check failed", Double.isNaN(d.doubleValue())); in test_isNaND()
/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()
DOldDoubleTest.java66 assertFalse("Doesn't return false value", Double.isNaN(new Double(Double.MAX_VALUE))); in test_isNaND()
/libcore/ojluni/src/main/java/java/lang/
DMath.java1547 return (d == 0.0 || Double.isNaN(d))?d:copySign(1.0, d); in signum()
1568 return (f == 0.0f || Float.isNaN(f))?f:copySign(1.0f, f); in signum()
1913 if (Double.isNaN(start) || Double.isNaN(direction)) { in nextAfter()
2012 if (Float.isNaN(start) || Double.isNaN(direction)) { in nextAfter()
2085 if( Double.isNaN(d) || d == Double.POSITIVE_INFINITY) in nextUp()
2120 if( Float.isNaN(f) || f == FloatConsts.POSITIVE_INFINITY) in nextUp()
2155 if (Double.isNaN(d) || d == Double.NEGATIVE_INFINITY) in nextDown()
2192 if (Float.isNaN(f) || f == Float.NEGATIVE_INFINITY) in nextDown()
DFloat.java462 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()
DDouble.java549 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()
DStrictMath.java1388 return Math.copySign(magnitude, (Double.isNaN(sign)?1.0d:sign)); in copySign()
1404 return Math.copySign(magnitude, (Float.isNaN(sign)?1.0f:sign)); in copySign()
/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/src/main/java/java/nio/
DDoubleBuffer.java808 return (x == y) || (Double.isNaN(x) && Double.isNaN(y)); in equals()
848 Double.isNaN(x) ? (Double.isNaN(y) ? 0 : +1) : -1); in compare()
DFloatBuffer.java808 return (x == y) || (Float.isNaN(x) && Float.isNaN(y)); in equals()
851 Float.isNaN(x) ? (Float.isNaN(y) ? 0 : +1) : -1); in compare()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DDouble.java64 public static boolean isNaN(double v) { in isNaN() method in Double
76 public boolean isNaN() { in isNaN() method in Double
DFloat.java67 public static boolean isNaN(float v) { in isNaN() method in Float
79 public boolean isNaN() { in isNaN() method in Float
/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/main/java/java/util/
DDoubleSummaryStatistics.java154 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in getSum()
DHashSet.java308 if (loadFactor <= 0 || Float.isNaN(loadFactor)) { in readObject()
/libcore/json/src/main/java/org/json/
DJSON.java24 if (Double.isInfinite(d) || Double.isNaN(d)) { in checkDouble()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java913 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/
DChoiceFormatTest.java314 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()

12