/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 218 assertEquals(POSITIVE_INFINITY, FP16.rint(POSITIVE_INFINITY)); in testRint() 219 assertEquals(NEGATIVE_INFINITY, FP16.rint(NEGATIVE_INFINITY)); in testRint() 220 assertEquals(POSITIVE_ZERO, FP16.rint(POSITIVE_ZERO)); in testRint() 221 assertEquals(NEGATIVE_ZERO, FP16.rint(NEGATIVE_ZERO)); in testRint() 222 assertEquals(NaN, FP16.rint(NaN)); in testRint() 223 assertEquals(LOWEST_VALUE, FP16.rint(LOWEST_VALUE)); in testRint() 224 assertEquals(POSITIVE_ZERO, FP16.rint(MIN_VALUE)); in testRint() 225 assertEquals(POSITIVE_ZERO, FP16.rint((short) 0x200)); in testRint() 226 assertEquals(POSITIVE_ZERO, FP16.rint((short) 0x3ff)); in testRint() 227 assertEquals(POSITIVE_ZERO, FP16.rint(toHalf(0.2f))); in testRint() [all …]
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | Rint.java | 36 Tests.test("Math.rint", input, Math.rint(input), expected); in testRintCase() 37 Tests.test("Math.rint", -input, Math.rint(-input), -expected); in testRintCase() 39 input, StrictMath.rint(input), expected); in testRintCase() 41 StrictMath.rint(-input), -expected); in testRintCase()
|
D | CeilAndFloorTests.java | 87 if (neighborDown == Math.rint(neighborDown)) { in nearIntegerTests() 98 if (neighborUp == Math.rint(neighborUp)) { in nearIntegerTests()
|
/libcore/luni/src/test/resources/ |
D | math_java_only.csv | 153 rint,-0x1.8ec3beb2d4185p1023,-0x1.8ec3beb2d4185p1023 154 rint,-0x1.a49ea827e7d05p1023,-0x1.a49ea827e7d05p1023 155 rint,-0x1.47afe754a89fep1021,-0x1.47afe754a89fep1021 156 rint,-0x1.ea33b08c7fbfbp1022,-0x1.ea33b08c7fbfbp1022 157 rint,0x1.40c8f2c416881p1023,0x1.40c8f2c416881p1023 158 rint,-0x1.d2762c5e7c22bp1022,-0x1.d2762c5e7c22bp1022 159 rint,0x1.0c0c8b67b7daep1021,0x1.0c0c8b67b7daep1021 160 rint,-0x1.800e50b80ea85p1023,-0x1.800e50b80ea85p1023 161 rint,0x1.ccf6eeb86909cp1020,0x1.ccf6eeb86909cp1020 162 rint,-0x1.6d6d5ccb7231fp1022,-0x1.6d6d5ccb7231fp1022 [all …]
|
/libcore/ojluni/src/main/native/ |
D | Math.c | 141 return rint(d); in Math_rint() 162 FAST_NATIVE_METHOD(Math, rint, "(D)D"),
|
D | fdlibm.h | 182 extern double rint __P((double));
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidStrictMathTest.java | 436 3.0, StrictMath.rint(2.9), 0D); in testRintD() 438 .rint(Double.NaN))); in testRintD() 440 .rint(2.1), 0D); in testRintD() 442 .rint(2.5) == 2.0); in testRintD()
|
D | OldAndroidMathTest.java | 461 3.0, Math.rint(2.9), 0D); in testRintD() 463 .rint(Double.NaN))); in testRintD() 465 2.0, Math.rint(2.1), 0D); in testRintD() 467 .rint(2.5) == 2.0); in testRintD()
|
/libcore/ojluni/annotations/flagged_api/java/lang/ |
D | StrictMath.annotated.java | 66 public static double rint(double a) { throw new RuntimeException("Stub!"); } in rint() method in StrictMath
|
D | Math.annotated.java | 67 public static native double rint(double a); in rint() method in Math
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | MathTest.java | 1398 3.0, Math.rint(2.9), 0D); in test_rintD() 1400 .rint(Double.NaN))); in test_rintD() 1402 2.0, Math.rint(2.1), 0D); in test_rintD() 1404 .rint(2.5) == 2.0); in test_rintD() 1406 Math.rint(+0.0d) == +0.0d); in test_rintD() 1408 Math.rint(-0.0d) == -0.0d); in test_rintD()
|
D | StrictMathTest.java | 964 3.0, StrictMath.rint(2.9), 0D); in test_rintD() 966 .rint(Double.NaN))); in test_rintD() 968 .rint(2.1), 0D); in test_rintD() 970 .rint(2.5) == 2.0); in test_rintD()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 293 StrictMath.rint(d); in timeRint()
|
D | MathBenchmark.java | 357 result = Math.rint(d); in timeRint()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 545 public static double rint(double a) { in rint() method in StrictMath
|
D | Math.java | 649 public static native double rint(double a); in rint() method in Math
|
/libcore/luni/src/main/java/libcore/util/ |
D | FP16.java | 313 public static short rint(short h) { in rint() method in FP16
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | SelectFunctionalityTest.java | 510 res = (int) Math.rint(resDouble); in func()
|
/libcore/api/ |
D | module-lib-current.txt | 724 method public static short rint(short);
|
D | current.txt | 3635 method public static double rint(double); 4077 method public static double rint(double);
|