Home
last modified time | relevance | path

Searched refs:input1 (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/lang/Math/
DFusedMultiplyAddTests.java341 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 …]
DTests.java253 public static void test(String testName, float input1, float input2, in test() argument
256 "\tFor inputs " + input1 + "\t(" + toHexString(input1) + ") and " in test()
262 public static void test(String testName, double input1, double input2, in test() argument
265 "\tFor inputs " + input1 + "\t(" + toHexString(input1) + ") and " in test()
305 float input1, double input2, in test() argument
308 "\tFor inputs " + input1 + "\t(" + toHexString(input1) + ") and " in test()
315 double input1, double input2, in test() argument
318 "\tFor inputs " + input1 + "\t(" + toHexString(input1) + ") and " in test()
325 float input1, int input2, in test() argument
328 "\tFor inputs " + input1 + "\t(" + toHexString(input1) + ") and " in test()
[all …]
DPowTests.java42 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()
54 if (input1 == 1.0) { 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()
[all …]
DAtan2Tests.java39 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()
DCubeRootTests.java125 double input1 = in testCubeRoot() local
130 testCubeRootCase(input1 * input1 * input1, input1); in testCubeRoot()
DHypotTests.java196 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
211 double x = i * input1; in testHypotCase()
/libcore/ojluni/src/test/java/lang/StrictMath/
DTests.java46 static void test(String testName, double input1, double input2, double result, in test() argument
50 "\tFor input " + input1 + "\t(" + Double.toHexString(input1) + "), " + in test()
DPowTests.java277 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()
DHypotTests.java62 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/
DRunCSVTestsStrict.java43 void run2InputTest(String func, double expectedOutput, double input1, in run2InputTest() argument
50 returnValue = m.invoke(null, input1, (int) input2); in run2InputTest()
53 returnValue = m.invoke(null, input1, input2); in run2InputTest()
DRunCSVTests.java81 void run2InputTest(String func, double expectedOutput, double input1, in run2InputTest() argument
88 returnValue = m.invoke(null, input1, (int) input2); in run2InputTest()
91 returnValue = m.invoke(null, input1, input2); in run2InputTest()
DCSVTest.java87 …abstract void run2InputTest(String func, double expectedOutput, double input1, double input2, Stri… in run2InputTest() argument