Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mul(operand: i32): i32 {
// https://webassembly.github.io/spec/core/exec/numerics.html#op-imul
return new i32(
Long.fromNumber(this._value)
.mul(Long.fromNumber(operand._value))
.mod(Math.pow(2, bits))
.toNumber()
);
}
mul(operand: i32): i32 {
// https://webassembly.github.io/spec/core/exec/numerics.html#op-imul
return new i32(
Long.fromNumber(this._value)
.mul(Long.fromNumber(operand._value))
.mod(Math.pow(2, bits))
.toNumber()
);
}