Home
last modified time | relevance | path

Searched refs:addExact (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java709 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()
DMath.java749 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/
DStrictMathTest.java46 assertEquals(expected, StrictMath.addExact(a, b)); in testAddExactI()
99 assertEquals(expected, BigInteger.valueOf(StrictMath.addExact(a, b))); in testAddExactL()
DMathTest.java49 assertEquals(expected, Math.addExact(a, b)); in testAddExactI()
138 assertEquals(expected, BigInteger.valueOf(Math.addExact(a, b))); in testAddExactL()