WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F32CopySignOpcode opcode, WasmNodeArg arg) { var right = arg.Pop(); var left = arg.Pop(); arg.Push(new F32CopySignNode(left, right)); return(null); }
public WasmOpcodeExecutor Visit(F32CopySignOpcode opcode, WasmFunctionState state) { var right = state.PopF32(); var left = state.PopF32(); state.PushF32(right >= 0 ? MathF.Abs(left) : -MathF.Abs(left)); return(this); }