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

Method multiplyP

src/jvm/clojure/lang/Numbers.java:506–514  ·  view source on GitHub ↗
(Number x, Number y)

Source from the content-addressed store, hash-verified

504 }
505
506 final public Number multiplyP(Number x, Number y){
507 long lx = x.longValue(), ly = y.longValue();
508 if (lx == Long.MIN_VALUE && ly < 0)
509 return BIGINT_OPS.multiply(x, y);
510 long ret = lx * ly;
511 if (ly != 0 && ret/ly != lx)
512 return BIGINT_OPS.multiply(x, y);
513 return num(ret);
514 }
515
516 final public Number unchecked_multiply(Number x, Number y){
517 return num(Numbers.unchecked_multiply(x.longValue(), y.longValue()));

Callers

nothing calls this directly

Calls 3

numMethod · 0.80
multiplyMethod · 0.65
longValueMethod · 0.45

Tested by

no test coverage detected