aboutsummaryrefslogtreecommitdiff
path: root/src/ARMeilleure/IntermediateRepresentation/Comparison.cs
blob: e3a68b49d99a4c8bd13045c01068478bbacce4c7 (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
namespace ARMeilleure.IntermediateRepresentation
{
    enum Comparison
    {
        Equal = 0,
        NotEqual = 1,
        Greater = 2,
        LessOrEqual = 3,
        GreaterUI = 4,
        LessOrEqualUI = 5,
        GreaterOrEqual = 6,
        Less = 7,
        GreaterOrEqualUI = 8,
        LessUI = 9,
    }

    static class ComparisonExtensions
    {
        public static Comparison Invert(this Comparison comp)
        {
            return (Comparison)((int)comp ^ 1);
        }
    }
}