Exemplo n.º 1
0
        private static void Execute(ExecutionContext context, ExecutableInstruction instruction, NumberType numberType, BoolNumber4Number4Number4ToNumber4Callback callback)
        {
            var src0   = GetOperandValue(context, instruction.Operands[1], numberType);
            var src1   = GetOperandValue(context, instruction.Operands[2], numberType);
            var src2   = GetOperandValue(context, instruction.Operands[3], numberType);
            var result = callback(instruction.Saturate, ref src0, ref src1, ref src2);

            SetRegisterValue(context, instruction.Operands[0], result);
        }
Exemplo n.º 2
0
        private static void Execute(ExecutionContext context, ExecutableInstruction instruction, NumberType numberType, BoolNumber4Number4Number4ToNumber4Callback callback)
        {
            var src0 = GetOperandValue(context, instruction.Operands[1], numberType);
            var src1 = GetOperandValue(context, instruction.Operands[2], numberType);
            var src2 = GetOperandValue(context, instruction.Operands[3], numberType);
            var result = callback(instruction.Saturate, ref src0, ref src1, ref src2);

            SetRegisterValue(context, instruction.Operands[0], result);
        }