CSPspEmu.Core.Cpu.VFpu.VfpuConstants.GetRegisterNames C# (CSharp) Method

GetRegisterNames() private static method

private static GetRegisterNames ( VfpuRegisterType Type, int Size ) : string[]
Type VfpuRegisterType
Size int
return string[]
        private static string[] GetRegisterNames(VfpuRegisterType Type, int Size)
        {
            if (Type == VfpuRegisterType.Cell && Size == 1) return vfpu_sreg_names;

            if (Type == VfpuRegisterType.Vector && Size == 2) return vfpu_vpreg_names;
            if (Type == VfpuRegisterType.Vector && Size == 3) return vfpu_vtreg_names;
            if (Type == VfpuRegisterType.Vector && Size == 4) return vfpu_vqreg_names;

            if (Type == VfpuRegisterType.Matrix && Size == 2) return vfpu_mpreg_names;
            if (Type == VfpuRegisterType.Matrix && Size == 3) return vfpu_mtreg_names;
            if (Type == VfpuRegisterType.Matrix && Size == 4) return vfpu_mqreg_names;

            throw (new InvalidOperationException(String.Format("{0} + {1}", Type, Size)));
        }