Ejemplo n.º 1
0
    private static int Main()
    {
        int returnVal = Pass;

        if (VectorMaxTest <float> .VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <double> .VectorMax(2d, 3d, 3d) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <int> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <long> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector4Test.VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector3Test.VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector2Test.VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <ushort> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <byte> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <short> .VectorMax(-2, -3, -2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <sbyte> .VectorMax(-2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <uint> .VectorMax(0x80000000u, 0x40000000u, 0x80000000u) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <ulong> .VectorMax(2ul, 3ul, 3ul) != Pass)
        {
            returnVal = Fail;
        }
        return(returnVal);
    }
Ejemplo n.º 2
0
    private static int Main()
    {
        int returnVal = Pass;

        if (VectorMaxTest <float> .VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <double> .VectorMax(2d, 3d, 3d) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <int> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <long> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector4Test.VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector3Test.VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector2Test.VectorMax(2f, 3f, 3f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <ushort> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <byte> .VectorMax(2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <short> .VectorMax(-2, -3, -2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <sbyte> .VectorMax(-2, 3, 3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <uint> .VectorMax(0x80000000u, 0x40000000u, 0x80000000u) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMaxTest <ulong> .VectorMax(2ul, 3ul, 3ul) != Pass)
        {
            returnVal = Fail;
        }

        JitLog jitLog = new JitLog();

        if (!jitLog.Check("Max", "Single"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "Double"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "Int32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "Int64"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("System.Numerics.Vector4:Max"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("System.Numerics.Vector3:Max"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("System.Numerics.Vector2:Max"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "UInt16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "Byte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "Int16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "SByte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "UInt32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Max", "UInt64"))
        {
            returnVal = Fail;
        }
        jitLog.Dispose();

        return(returnVal);
    }