(BigInt y)
| 142 | } |
| 143 | |
| 144 | public BigInt add(BigInt y) { |
| 145 | if ((bipart == null) && (y.bipart == null)) { |
| 146 | long ret = lpart + y.lpart; |
| 147 | if ((ret ^ lpart) >= 0 || (ret ^ y.lpart) >= 0) |
| 148 | return BigInt.valueOf(ret); |
| 149 | } |
| 150 | return BigInt.fromBigInteger(this.toBigInteger().add(y.toBigInteger())); |
| 151 | } |
| 152 | |
| 153 | public BigInt multiply(BigInt y) { |
| 154 | if ((bipart == null) && (y.bipart == null)) { |
nothing calls this directly
no test coverage detected