aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/LightningJit/CodeGen/Arm64/ArmCondition.cs
blob: caa2e593be2d9a5ab4db7cea3437e4637258eb7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace Ryujinx.Cpu.LightningJit.CodeGen.Arm64
{
    enum ArmCondition
    {
        Eq = 0,
        Ne = 1,
        GeUn = 2,
        LtUn = 3,
        Mi = 4,
        Pl = 5,
        Vs = 6,
        Vc = 7,
        GtUn = 8,
        LeUn = 9,
        Ge = 10,
        Lt = 11,
        Gt = 12,
        Le = 13,
        Al = 14,
        Nv = 15,
    }

    static class ArmConditionExtensions
    {
        public static ArmCondition Invert(this ArmCondition condition)
        {
            return (ArmCondition)((int)condition ^ 1);
        }
    }
}