Searched refs:absExact (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/tests/java/lang/ |
D | StrictMathTest.java | 35 assertEquals(0, StrictMath.absExact(0)); in test_absExact_int() 36 assertEquals(5, StrictMath.absExact(5)); in test_absExact_int() 37 assertEquals(5, StrictMath.absExact(-5)); in test_absExact_int() 38 assertEquals(Integer.MAX_VALUE, StrictMath.absExact(-Integer.MAX_VALUE)); in test_absExact_int() 39 assertEquals(Integer.MAX_VALUE, StrictMath.absExact(Integer.MAX_VALUE)); in test_absExact_int() 44 assertEquals(0L, StrictMath.absExact(0L)); in test_absExact_long() 45 assertEquals(5L, StrictMath.absExact(5L)); in test_absExact_long() 46 assertEquals(5L, StrictMath.absExact(-5L)); in test_absExact_long() 47 assertEquals(Long.MAX_VALUE, StrictMath.absExact(-Long.MAX_VALUE)); in test_absExact_long() 48 assertEquals(Long.MAX_VALUE, StrictMath.absExact(Long.MAX_VALUE)); in test_absExact_long()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | AbsTests.java | 52 testIntAbs(Math::absExact, testCase[0], testCase[1]); in testInRangeIntAbs() 62 assertThrows(ArithmeticException.class, () -> Math.absExact(Integer.MIN_VALUE)); in testIntMinValue() 92 testLongAbs(Math::absExact, testCase[0], testCase[1]); in testInRangeLongAbs() 102 assertThrows(ArithmeticException.class, () -> Math.absExact(Long.MIN_VALUE)); in testLongMinValue()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 1626 public static int absExact(int a) { in absExact() method in StrictMath 1627 return Math.absExact(a); in absExact() 1668 public static long absExact(long a) { in absExact() method in StrictMath 1669 return Math.absExact(a); in absExact()
|
D | Math.java | 2049 public static int absExact(int a) { in absExact() method in Math 2095 public static long absExact(long a) { in absExact() method in Math
|
/libcore/ojluni/annotations/flagged_api/java/lang/ |
D | StrictMath.annotated.java | 163 public static int absExact(int a) { throw new RuntimeException("Stub!"); } in absExact() method in StrictMath 167 public static long absExact(long a) { throw new RuntimeException("Stub!"); } in absExact() method in StrictMath
|
D | Math.annotated.java | 164 public static int absExact(int a) { throw new RuntimeException("Stub!"); } in absExact() method in Math 168 public static long absExact(long a) { throw new RuntimeException("Stub!"); } in absExact() method in Math
|
/libcore/api/ |
D | current.txt | 3561 method public static int absExact(int); 3562 method public static long absExact(long); 4003 method public static int absExact(int); 4004 method public static long absExact(long);
|