MCPcopy Index your code
hub / github.com/clojure/clojure / add

Method add

src/jvm/clojure/lang/BigInt.java:144–151  ·  view source on GitHub ↗
(BigInt y)

Source from the content-addressed store, hash-verified

142}
143
144public 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
153public BigInt multiply(BigInt y) {
154 if ((bipart == null) && (y.bipart == null)) {

Callers

nothing calls this directly

Calls 4

valueOfMethod · 0.95
fromBigIntegerMethod · 0.95
toBigIntegerMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected