Example #1
0
    public static void Test()
    {
        //FixPoint.GenerateSinTable();
        //FixPoint.GenerateAtan2Table();

        FixPointTests tester = new FixPointTests();

        tester.TestParse();
        tester.Precision();
        tester.LongToFixPointAndBack();
        tester.DoubleToFixPointAndBack();
        tester.DecimalToFixPointAndBack();
        tester.IntToFixPointAndBack();
        tester.FloatToFixPointAndBack();
        tester.Addition();
        tester.Substraction();
        tester.Multiplication();
        tester.Division();
        tester.Modulus();
        tester.TestSign();
        tester.TestAbs();
        tester.TestSqrt();
        tester.TestSin();
        tester.TestCos();
        tester.TestTan();
        tester.TestAtan2();
        //tester.TestMultiplicationSpeed();
        //tester.TestDivisionSpeed();
    }