Home
last modified time | relevance | path

Searched refs:nextUp (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/Math/
DRint.java58 {Math.nextUp(0.5), 1.0}, in testRint()
63 {Math.nextUp(1.0), 1.0}, in testRint()
67 {Math.nextUp(1.5), 2.0}, in testRint()
79 {Math.nextUp(300000.5), 300001.0}, in testRint()
82 {Math.nextUp(300000.75), 300001.0}, in testRint()
91 {Math.nextUp(twoToThe52), Math.nextUp(twoToThe52)}, in testRint()
DCeilAndFloorTests.java69 double neighborUp = Math.nextUp(powerOfTwo); in nearIntegerTests()
114 double neighborUp = Math.nextUp(d); in nearIntegerTests()
157 {Math.nextUp(1.0), 2.0}, in roundingTests()
158 {Math.nextUp(-1.0), -0.0}, in roundingTests()
164 {-Math.nextUp(0x1.0p51), -0x1.0p51}, in roundingTests()
166 {Math.nextUp(0x1.0p51), 0x1.0p51 + 1}, in roundingTests()
170 {-Math.nextUp(0x1.0p52), -0x1.0p52 - 1.0}, in roundingTests()
172 {Math.nextUp(0x1.0p52), 0x1.0p52 + 1.0}, in roundingTests()
DCubeRootTests.java189 err_adjacent = StrictMath.pow(Math.nextUp(y1), 3) - d; in testCubeRoot()
208 err_adjacent = StrictMath.pow(Math.nextUp(y2), 3) - d; in testCubeRoot()
247 pcNeighbors[3] = Math.nextUp(pc); in testCubeRoot()
248 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testCubeRoot()
284 pcNeighbors[3] = Math.nextUp(pc); in testCubeRoot()
285 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testCubeRoot()
DExpm1Tests.java145 pcNeighbors[3] = Math.nextUp(pc); in testExpm1()
146 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testExpm1()
DLog1pTests.java150 pcNeighbors[3] = Math.nextUp(pc); in testLog1p()
151 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testLog1p()
DLog10Tests.java153 up = Math.nextUp(1.0); in testLog10()
158 up = Math.nextUp(up); in testLog10()
DHypotTests.java167 pcNeighbors[3] = Math.nextUp(pc); in testHypot()
168 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testHypot()
DClamp.java140 {Math.nextUp(0.5), 0.0, 0.5, 0.5}, in testDoubleClamp()
204 {Math.nextUp(0.5f), 0.0f, 0.5f, 0.5f}, in testFloatClamp()
DTests.java65 return Math.nextUp(d); in nextOut()
67 return -Math.nextUp(-d); in nextOut()
DIeeeRecommendedTests.java526 testCase[0], Math.nextUp(testCase[0]), testCase[1]); in testFloatNextUp()
529 testCase[0], StrictMath.nextUp(testCase[0]), testCase[1]); in testFloatNextUp()
560 testCase[0], Math.nextUp(testCase[0]), testCase[1]); in testDoubleNextUp()
563 testCase[0], StrictMath.nextUp(testCase[0]), testCase[1]); in testDoubleNextUp()
/libcore/luni/src/test/resources/
Dmath_java_only.csv123 nextUp,-0x1.8ec3beb2d4184p1023,-0x1.8ec3beb2d4185p1023
124 nextUp,-0x1.a49ea827e7d04p1023,-0x1.a49ea827e7d05p1023
125 nextUp,-0x1.47afe754a89fdp1021,-0x1.47afe754a89fep1021
126 nextUp,-0x1.ea33b08c7fbfap1022,-0x1.ea33b08c7fbfbp1022
127 nextUp,0x1.40c8f2c416882p1023,0x1.40c8f2c416881p1023
128 nextUp,-0x1.d2762c5e7c22ap1022,-0x1.d2762c5e7c22bp1022
129 nextUp,0x1.0c0c8b67b7dafp1021,0x1.0c0c8b67b7daep1021
130 nextUp,-0x1.800e50b80ea84p1023,-0x1.800e50b80ea85p1023
131 nextUp,0x1.ccf6eeb86909dp1020,0x1.ccf6eeb86909cp1020
132 nextUp,-0x1.6d6d5ccb7231ep1022,-0x1.6d6d5ccb7231fp1022
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java694 public static double nextUp(double d) { in nextUp() method in FpUtils
695 return Math.nextUp(d); in nextUp()
725 public static float nextUp(float f) { in nextUp() method in FpUtils
726 return Math.nextUp(f); in nextUp()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFpUtils.java119 public static double nextUp(double d) { in nextUp() method in FpUtils
124 public static float nextUp(float f) { in nextUp() method in FpUtils
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java2514 public static double nextUp(double d) { in nextUp() method in StrictMath
2515 return Math.nextUp(d); in nextUp()
2543 public static float nextUp(float f) { in nextUp() method in StrictMath
2544 return Math.nextUp(f); in nextUp()
DMath.java3356 public static double nextUp(double d) {
3395 public static float nextUp(float f) {
/libcore/ojluni/src/test/java/lang/Float/
DParseFloatTest.java107 … l = new BigDecimal(na).subtract(new BigDecimal(Math.ulp(-Math.nextUp(-na))).multiply(HALF)); in check()
316 … BigDecimal lowerBound = f_BD.subtract(new BigDecimal(Math.ulp(-Math.nextUp(-f))).multiply(HALF)); in testPowers()
/libcore/ojluni/src/test/java/lang/StrictMath/
DExpTests.java70 {Math.nextUp(EXP_OVERFLOW_THRESH), Double.POSITIVE_INFINITY}, in testExp()
/libcore/ojluni/annotations/flagged_api/java/lang/
DStrictMath.annotated.java237 public static double nextUp(double d) { throw new RuntimeException("Stub!"); } in nextUp() method in StrictMath
239 public static float nextUp(float f) { throw new RuntimeException("Stub!"); } in nextUp() method in StrictMath
DMath.annotated.java238 public static double nextUp(double d) { throw new RuntimeException("Stub!"); } in nextUp() method in Math
240 public static float nextUp(float f) { throw new RuntimeException("Stub!"); } in nextUp() method in Math
/libcore/benchmarks/src/benchmarks/regression/
DStrictMathBenchmark.java269 StrictMath.nextUp(d); in timeNextUpD()
275 StrictMath.nextUp(f); in timeNextUpF()
DMathBenchmark.java325 result = Math.nextUp(d); in timeNextUpD()
333 result = Math.nextUp(f); in timeNextUpF()
/libcore/ojluni/src/main/java/java/text/
DChoiceFormat.java473 return Math.nextUp(d); in nextDouble()
576 return positive ? Math.nextUp(d) : Math.nextDown(d); in nextDouble()
/libcore/ojluni/src/test/java/lang/Double/
DParseDoubleTest.java109 … l = new BigDecimal(na).subtract(new BigDecimal(Math.ulp(Math.nextUp(-na))).multiply(HALF)); in check()
715 … BigDecimal lowerBound = d_BD.subtract(new BigDecimal(Math.ulp(Math.nextUp(-d))).multiply(HALF)); in testPowers()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java833 .nextUp(start)); in test_nextUp_D()
840 .nextUp(Double.NaN))); in test_nextUp_D()
844 StrictMath.nextUp((Double) null); in test_nextUp_D()
865 .nextUp(start)); in test_nextUp_F()
872 .nextUp(Float.NaN))); in test_nextUp_F()
876 StrictMath.nextUp((Float) null); in test_nextUp_F()
DMathTest.java1010 final long resultBits = Double.doubleToLongBits(Math.nextUp(start)); in test_nextUp_D()
1017 .nextUp(Double.NaN))); in test_nextUp_D()
1021 Math.nextUp((Double) null); in test_nextUp_D()
1041 final int resultBits = Float.floatToIntBits(Math.nextUp(start)); in test_nextUp_F()
1048 .nextUp(Float.NaN))); in test_nextUp_F()
1052 Math.nextUp((Float) null); in test_nextUp_F()

12