Searched refs:addExact (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 709 public static int addExact(int x, int y) { in addExact() method in StrictMath 710 return Math.addExact(x, y); in addExact() 724 public static long addExact(long x, long y) { in addExact() method in StrictMath 725 return Math.addExact(x, y); in addExact()
|
D | Math.java | 749 public static int addExact(int x, int y) { in addExact() method in Math 768 public static long addExact(long x, long y) { in addExact() method in Math
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StrictMathTest.java | 46 assertEquals(expected, StrictMath.addExact(a, b)); in testAddExactI() 99 assertEquals(expected, BigInteger.valueOf(StrictMath.addExact(a, b))); in testAddExactL()
|
D | MathTest.java | 49 assertEquals(expected, Math.addExact(a, b)); in testAddExactI() 138 assertEquals(expected, BigInteger.valueOf(Math.addExact(a, b))); in testAddExactL()
|