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

            arg.Push(new F64SqrtNode(expr));
            return(null);
        }
예제 #2
0
        public WasmOpcodeExecutor Visit(F64SqrtOpcode opcode, WasmFunctionState state)
        {
            var value = state.PopF64();

            state.PushF64(Math.Sqrt(value));
            return(this);
        }