/libcore/ojluni/src/test/java/lang/Math/ |
D | FusedMultiplyAddTests.java | 341 private static void testFusedMacCase(double input1, double input2, double input3, in testFusedMacCase() argument 343 Tests.test("Math.fma(double)", input1, input2, input3, in testFusedMacCase() 344 Math.fma(input1, input2, input3), expected); in testFusedMacCase() 345 Tests.test("StrictMath.fma(double)", input1, input2, input3, in testFusedMacCase() 346 StrictMath.fma(input1, input2, input3), expected); in testFusedMacCase() 349 Tests.test("Math.fma(double)", input2, input1, input3, in testFusedMacCase() 350 Math.fma(input2, input1, input3), expected); in testFusedMacCase() 351 Tests.test("StrictMath.fma(double)", input2, input1, input3, in testFusedMacCase() 352 StrictMath.fma(input2, input1, input3), expected); in testFusedMacCase() 355 private static void testFusedMacCase(float input1, float input2, float input3, float expected) { in testFusedMacCase() argument [all …]
|
D | Tests.java | 253 public static void test(String testName, float input1, float input2, in test() argument 257 + input2 + "\t(" + toHexString(input2) + ")\n" + in test() 262 public static void test(String testName, double input1, double input2, in test() argument 266 + input2 + "\t(" + toHexString(input2) + ")\n" + in test() 305 float input1, double input2, in test() argument 309 + input2 + "\t(" + toHexString(input2) + ")\n" + in test() 315 double input1, double input2, in test() argument 319 + input2 + "\t(" + toHexString(input2) + ")\n" + in test() 325 float input1, int input2, in test() argument 329 + input2 + "\n" + in test() [all …]
|
D | PowTests.java | 42 static void testPowCase(double input1, double input2, double expected) { in testPowCase() argument 43 Tests.test("StrictMath.pow(double, double)", input1, input2, in testPowCase() 44 StrictMath.pow(input1, input2), expected); in testPowCase() 56 } else if (input1 == -1.0 && Double.isInfinite(input2)) { in testPowCase() 59 Tests.test("Math.pow(double, double)", input1, input2, in testPowCase() 60 Math.pow(input1, input2), strictMathExpected); in testPowCase() 65 static void testStrictPowCase(double input1, double input2, double expected) { in testStrictPowCase() argument 66 Tests.test("StrictMath.pow(double, double)", input1, input2, in testStrictPowCase() 67 StrictMath.pow(input1, input2), expected); in testStrictPowCase() 70 static void testNonstrictPowCase(double input1, double input2, double expected) { in testNonstrictPowCase() argument [all …]
|
D | Atan2Tests.java | 39 static void testAtan2Case(double input1, double input2, double expected) { in testAtan2Case() argument 40 Tests.test("StrictMath.atan2(double, double)", input1, input2, in testAtan2Case() 41 StrictMath.atan2(input1, input2), expected); in testAtan2Case() 42 Tests.test("Math.atan2(double, double)", input1, input2, in testAtan2Case() 43 Math.atan2(input1, input2), expected); in testAtan2Case()
|
D | CubeRootTests.java | 132 double input2 = in testCubeRoot() local 137 testCubeRootCase(input2 * input2 * input2, input2); in testCubeRoot()
|
D | HypotTests.java | 196 static void testHypotCase(double input1, double input2, double expected) { in testHypotCase() argument 197 testHypotCase(input1, input2, expected, 1); in testHypotCase() 200 static void testHypotCase(double input1, double input2, double expected, double ulps) { in testHypotCase() argument 212 double y = j * input2; in testHypotCase()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | Tests.java | 46 static void test(String testName, double input1, double input2, double result, in test() argument 51 +input2 + "\t(" + Double.toHexString(input2) + ")\n" + in test()
|
D | PowTests.java | 277 private static void testPowCase(double input1, double input2, double expected) { in testPowCase() argument 278 Tests.test("StrictMath.pow(double)", input1, input2, in testPowCase() 279 StrictMath.pow(input1, input2), expected); in testPowCase()
|
D | HypotTests.java | 62 static void testHypotCase(double input1, double input2, double expected) { in testHypotCase() argument 63 Tests.test("StrictMath.hypot(double)", input1, input2, in testHypotCase() 64 StrictMath.hypot(input1, input2), expected); in testHypotCase() 66 Tests.test("StrictMath.hypot(double)", input2, input1, in testHypotCase() 67 StrictMath.hypot(input2, input1), expected); in testHypotCase() 69 Tests.test("StrictMath.hypot(double)", -input1, input2, in testHypotCase() 70 StrictMath.hypot(-input1, input2), expected); in testHypotCase() 72 Tests.test("StrictMath.hypot(double)", input2, -input1, in testHypotCase() 73 StrictMath.hypot(input2, -input1), expected); in testHypotCase() 75 Tests.test("StrictMath.hypot(double)", input1, -input2, in testHypotCase() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | RunCSVTestsStrict.java | 44 double input2, String extra) throws Exception { in run2InputTest() argument 50 returnValue = m.invoke(null, input1, (int) input2); in run2InputTest() 53 returnValue = m.invoke(null, input1, input2); in run2InputTest()
|
D | CSVTest.java | 71 double input2 = Double.parseDouble(testCase[3]); in runTest() local 75 run2InputTest(function, expectedOutput, input, input2, extra); in runTest() 87 …abstract void run2InputTest(String func, double expectedOutput, double input1, double input2, Stri… in run2InputTest() argument
|
D | RunCSVTests.java | 82 double input2, String extra) throws Exception { in run2InputTest() argument 88 returnValue = m.invoke(null, input1, (int) input2); in run2InputTest() 91 returnValue = m.invoke(null, input1, input2); in run2InputTest()
|