pub fn typed_mul(
x: &MaybeRelocatable,
y: &MaybeRelocatable,
opcode_extension: OpcodeExtension,
) -> Result<MaybeRelocatable, VirtualMachineError>
Expand description
Multiplies two MaybeRelocatable values according to the specified OpcodeExtension and returns the result as a MaybeRelocatable value. Requires both operands to be Int. If the OpcodeExtension is Stone it multiplies them as Felts. If the OpcodeExtension is QM31Operation it multiplies them as packed reduced QM31 elements.