Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
None
Description
public static long addAndCheck(long x, long y) {
BigInteger s = BigInteger.valueOf.add(BigInteger.valueOf;
if (s.bitLength() + 1 > Long.SIZE)
return s.longValue();
}
public static long subAndCheck(long x, long y) {
BigInteger s = BigInteger.valueOf.subtract(BigInteger.valueOf);
if (s.bitLength() + 1 > Long.SIZE)
return s.longValue();
}