MCPcopy Create free account
hub / github.com/questdb/questdb / multiply

Method multiply

core/src/main/java/io/questdb/std/Decimal256.java:709–712  ·  view source on GitHub ↗

Static multiplication method. @param a the first operand @param b the second operand @param result the result (can be the same as a or b for in-place operation) @throws NumericException if overflow occurs

(Decimal256 a, Decimal256 b, Decimal256 result)

Source from the content-addressed store, hash-verified

707 * @throws NumericException if overflow occurs
708 */
709 public static void multiply(Decimal256 a, Decimal256 b, Decimal256 result) {
710 result.copyFrom(a);
711 result.multiply(b);
712 }
713
714 public static void put(Decimal256 d, long addr) {
715 put(d.getHh(), d.getHl(), d.getLh(), d.getLl(), addr);

Callers 15

testLargeNumbersMethod · 0.95
testMultiplyMethod · 0.95
testMultiplyNullMethod · 0.95
testMultiplyNullOtherMethod · 0.95

Calls 15

isNullMethod · 0.95
ofNullMethod · 0.95
validateScaleMethod · 0.95
isNegativeMethod · 0.95
negateMethod · 0.95
multiply256Method · 0.95
multiply192Method · 0.95
multiply128By128Method · 0.95
multiply128Method · 0.95
multiply64Method · 0.95
multiply192By64Method · 0.95
multiply128By64Method · 0.95

Tested by 15

testLargeNumbersMethod · 0.76
testMultiplyMethod · 0.76
testMultiplyNullMethod · 0.76
testMultiplyNullOtherMethod · 0.76