Home
last modified time | relevance | path

Searched refs:isInfinite (Results 1 – 25 of 32) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java239 public static boolean isInfinite(double d) { in isInfinite() method in FpUtils
240 return Double.isInfinite(d); in isInfinite()
255 public static boolean isInfinite(float f) { in isInfinite() method in FpUtils
256 return Float.isInfinite(f); in isInfinite()
/libcore/ojluni/src/main/java/java/lang/
DFloat.java510 public static boolean isInfinite(float v) { in isInfinite() method in Float
611 public boolean isInfinite() { in isInfinite() method in Float
612 return isInfinite(value); in isInfinite()
DDouble.java685 public static boolean isInfinite(double v) { in isInfinite() method in Double
768 public boolean isInfinite() { in isInfinite() method in Double
769 return isInfinite(value); in isInfinite()
DMath.java2537 boolean infiniteA = Double.isInfinite(a); in fma()
2538 boolean infiniteB = Double.isInfinite(b); in fma()
2539 boolean infiniteC = Double.isInfinite(c); in fma()
2551 if (Double.isInfinite(product) && !infiniteA && !infiniteB) { in fma()
2554 assert Double.isInfinite(c); in fma()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFpUtils.java66 public static boolean isInfinite(double d) { in isInfinite() method in FpUtils
70 public static boolean isInfinite(float f) { in isInfinite() method in FpUtils
/libcore/ojluni/annotations/flagged_api/java/lang/
DDouble.annotated.java50 public static boolean isInfinite(double v) { throw new RuntimeException("Stub!"); } in isInfinite() method in Double
56 public boolean isInfinite() { throw new RuntimeException("Stub!"); } in isInfinite() method in Double
DFloat.annotated.java53 public static boolean isInfinite(float v) { throw new RuntimeException("Stub!"); } in isInfinite() method in Float
59 public boolean isInfinite() { throw new RuntimeException("Stub!"); } in isInfinite() method in Float
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java49 public static boolean isInfinite(double v) { throw new RuntimeException("Stub!"); } in isInfinite() method in Double
55 public boolean isInfinite() { throw new RuntimeException("Stub!"); } in isInfinite() method in Double
DFloat.annotated.java51 public static boolean isInfinite(float v) { throw new RuntimeException("Stub!"); } in isInfinite() method in Float
57 public boolean isInfinite() { throw new RuntimeException("Stub!"); } in isInfinite() method in Float
/libcore/ojluni/annotations/hiddenapi/java/lang/
DFloat.java71 public static boolean isInfinite(float v) { in isInfinite() method in Float
83 public boolean isInfinite() { in isInfinite() method in Float
DDouble.java68 public static boolean isInfinite(double v) { in isInfinite() method in Double
80 public boolean isInfinite() { in isInfinite() method in Double
/libcore/luni/src/test/java/libcore/libcore/util/
DFP16Test.java108 assertTrue(FP16.isInfinite(POSITIVE_INFINITY)); in testIsInfinite()
109 assertTrue(FP16.isInfinite(NEGATIVE_INFINITY)); in testIsInfinite()
110 assertFalse(FP16.isInfinite(POSITIVE_ZERO)); in testIsInfinite()
111 assertFalse(FP16.isInfinite(NEGATIVE_ZERO)); in testIsInfinite()
112 assertFalse(FP16.isInfinite(NaN)); in testIsInfinite()
113 assertFalse(FP16.isInfinite(MAX_VALUE)); in testIsInfinite()
114 assertFalse(FP16.isInfinite(LOWEST_VALUE)); in testIsInfinite()
115 assertFalse(FP16.isInfinite(toHalf(-128.3f))); in testIsInfinite()
116 assertFalse(FP16.isInfinite(toHalf(128.3f))); in testIsInfinite()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DFloatTest.java245 (new Float(Float.POSITIVE_INFINITY).isInfinite() && new Float( in test_isInfinite()
246 Float.NEGATIVE_INFINITY).isInfinite()) in test_isInfinite()
247 && !(new Float(0.13131414f).isInfinite())); in test_isInfinite()
255 assertTrue(Float.isInfinite(Float.POSITIVE_INFINITY)); in test_isInfiniteF()
256 assertTrue(Float.isInfinite(Float.NEGATIVE_INFINITY)); in test_isInfiniteF()
257 assertFalse(Float.isInfinite(Float.MAX_VALUE)); in test_isInfiniteF()
258 assertFalse(Float.isInfinite(Float.MIN_VALUE)); in test_isInfiniteF()
259 assertFalse(Float.isInfinite(Float.NaN)); in test_isInfiniteF()
260 assertFalse(Float.isInfinite(1.0f)); in test_isInfiniteF()
DDoubleTest.java350 .isInfinite()); in test_isInfinite()
352 .isInfinite()); in test_isInfinite()
353 assertTrue("Non infinite number returned true", !(new Double(1000).isInfinite())); in test_isInfinite()
361 assertTrue(Double.isInfinite(Double.NEGATIVE_INFINITY)); in test_isInfiniteD()
362 assertTrue(Double.isInfinite(Double.POSITIVE_INFINITY)); in test_isInfiniteD()
363 assertFalse(Double.isInfinite(Double.MAX_VALUE)); in test_isInfiniteD()
364 assertFalse(Double.isInfinite(Double.MIN_VALUE)); in test_isInfiniteD()
365 assertFalse(Double.isInfinite(Double.NaN)); in test_isInfiniteD()
366 assertFalse(Double.isInfinite(0.0)); in test_isInfiniteD()
/libcore/ojluni/src/test/java/lang/Double/
DNaNInfinityParsingTest.java140 Assert.assertTrue(Double.isInfinite(d), "Infinity string ``" + in testValidInfinityStrings()
DParseDoubleTest.java105 if (Double.isInfinite(na)) { in check()
/libcore/ojluni/src/test/java/lang/Float/
DNaNInfinityParsingTest.java145 Assert.assertTrue(Float.isInfinite(d), "Infinity string ``" + in testValidInfinityStrings()
DParseFloatTest.java103 if (Float.isInfinite(na)) { in check()
/libcore/ojluni/src/test/java/lang/Math/
DPowTests.java56 } else if (input1 == -1.0 && Double.isInfinite(input2)) { in testPowCase()
176 } else if (Double.isInfinite(y)) { in testCrossProduct()
DIeeeRecommendedTests.java682 Float.isInfinite(testCases[i]), (i == 1 || i == 2)); in testFloatBooleanMethods()
728 Double.isInfinite(testCases[i]), (i == 1 || i == 2)); in testDoubleBooleanMethods()
/libcore/json/src/main/java/org/json/
DJSON.java24 if (Double.isInfinite(d) || Double.isNaN(d)) { in checkDouble()
/libcore/ojluni/src/main/java/java/util/
DDoubleSummaryStatistics.java247 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in getSum()
/libcore/ojluni/src/test/java/util/DoubleStreamSums/
DCompensatedSums.java130 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in computeFinalSum()
/libcore/luni/src/main/java/libcore/util/
DFP16.java628 public static boolean isInfinite(short h) { in isInfinite() method in FP16
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java2501 if ((number instanceof Double) && !((Double) number).isInfinite() in parse()
2506 (((Double) number).isNaN() || ((Double) number).isInfinite())) { in parse()

12