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

Method fromBigInteger

src/jvm/clojure/lang/BigInt.java:61–66  ·  view source on GitHub ↗
(BigInteger val)

Source from the content-addressed store, hash-verified

59}
60
61public static BigInt fromBigInteger(BigInteger val){
62 if(val.bitLength() < 64)
63 return new BigInt(val.longValue(), null);
64 else
65 return new BigInt(0, val);
66}
67
68public static BigInt fromLong(long val){
69 return new BigInt(val, null);

Callers 15

addMethod · 0.95
multiplyMethod · 0.95
quotientMethod · 0.95
remainderMethod · 0.95
matchNumberMethod · 0.95
matchNumberMethod · 0.95
toBigIntMethod · 0.95
rationalizeMethod · 0.95
divideMethod · 0.95
negatePMethod · 0.95
quotientMethod · 0.95
negateMethod · 0.95

Calls 2

bitLengthMethod · 0.80
longValueMethod · 0.45

Tested by

no test coverage detected