예제 #1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F32MaxOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new F32MaxNode(left, right));
            return(null);
        }
예제 #2
0
        public WasmOpcodeExecutor Visit(F32MaxOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopF32();
            var left  = state.PopF32();

            state.PushF32(MathF.Max(left, right));
            return(this);
        }