(BigInteger x)
| 464 | // Returns true if BigInteger.valueOf(x.longValue()).equals(x). |
| 465 | |
| 466 | @GwtIncompatible // TODO |
| 467 | static boolean fitsInLong(BigInteger x) { |
| 468 | return x.bitLength() <= Long.SIZE - 1; |
| 469 | } |
| 470 | |
| 471 | private BigIntegerMath() {} |
| 472 | } |