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

GetRegisterIndexByName() public static method

public static GetRegisterIndexByName ( VfpuRegisterType Type, int Size, string Name ) : uint
Type VfpuRegisterType
Size int
Name string
return uint
        public static uint GetRegisterIndexByName(VfpuRegisterType Type, int Size, string Name)
        {
            // @TODO: Create a dictionary.
            var Names = GetRegisterNames(Type, Size);
            return (uint)Array.IndexOf(Names, Name);
        }