Esempio n. 1
0
        public void RunClassFldScenario()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));

            var result = Sse2.CompareScalarOrderedNotEqual(_fld1, _fld2);

            ValidateResult(_fld1, _fld2, result);
        }
Esempio n. 2
0
        public void RunStructLclFldScenario()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));

            var test   = TestStruct.Create();
            var result = Sse2.CompareScalarOrderedNotEqual(test._fld1, test._fld2);

            ValidateResult(test._fld1, test._fld2, result);
        }
Esempio n. 3
0
        public void RunClassLclFldScenario()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));

            var test   = new BooleanBinaryOpTest__CompareScalarOrderedNotEqualBoolean();
            var result = Sse2.CompareScalarOrderedNotEqual(test._fld1, test._fld2);

            ValidateResult(test._fld1, test._fld2, result);
        }
Esempio n. 4
0
        public void RunLclVarScenario_UnsafeRead()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));

            var op1    = Unsafe.Read <Vector128 <Double> >(_dataTable.inArray1Ptr);
            var op2    = Unsafe.Read <Vector128 <Double> >(_dataTable.inArray2Ptr);
            var result = Sse2.CompareScalarOrderedNotEqual(op1, op2);

            ValidateResult(op1, op2, result);
        }
Esempio n. 5
0
        public void RunLclVarScenario_LoadAligned()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));

            var op1    = Sse2.LoadAlignedVector128((Double *)(_dataTable.inArray1Ptr));
            var op2    = Sse2.LoadAlignedVector128((Double *)(_dataTable.inArray2Ptr));
            var result = Sse2.CompareScalarOrderedNotEqual(op1, op2);

            ValidateResult(op1, op2, result);
        }
Esempio n. 6
0
        public void RunLclVarScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));

            var left   = Sse2.LoadVector128((Double *)(_dataTable.inArray1Ptr));
            var right  = Sse2.LoadVector128((Double *)(_dataTable.inArray2Ptr));
            var result = Sse2.CompareScalarOrderedNotEqual(left, right);

            ValidateResult(left, right, result);
        }
Esempio n. 7
0
        public void RunBasicScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));

            var result = Sse2.CompareScalarOrderedNotEqual(
                Sse2.LoadVector128((Double *)(_dataTable.inArray1Ptr)),
                Sse2.LoadVector128((Double *)(_dataTable.inArray2Ptr))
                );

            ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result);
        }
Esempio n. 8
0
        public void RunBasicScenario_UnsafeRead()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));

            var result = Sse2.CompareScalarOrderedNotEqual(
                Unsafe.Read <Vector128 <Double> >(_dataTable.inArray1Ptr),
                Unsafe.Read <Vector128 <Double> >(_dataTable.inArray2Ptr)
                );

            ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result);
        }
Esempio n. 9
0
        public void RunStructLclFldScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));

            var test   = TestStruct.Create();
            var result = Sse2.CompareScalarOrderedNotEqual(
                Sse2.LoadVector128((Double *)(&test._fld1)),
                Sse2.LoadVector128((Double *)(&test._fld2))
                );

            ValidateResult(test._fld1, test._fld2, result);
        }
Esempio n. 10
0
            public void RunStructFldScenario_Load(BooleanBinaryOpTest__CompareScalarOrderedNotEqualBoolean testClass)
            {
                fixed(Vector128 <Double> *pFld1 = &_fld1)
                fixed(Vector128 <Double> *pFld2 = &_fld2)
                {
                    var result = Sse2.CompareScalarOrderedNotEqual(
                        Sse2.LoadVector128((Double *)(pFld1)),
                        Sse2.LoadVector128((Double *)(pFld2))
                        );

                    testClass.ValidateResult(_fld1, _fld2, result);
                }
            }
Esempio n. 11
0
        public void RunClassFldScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));

            fixed(Vector128 <Double> *pFld1 = &_fld1)
            fixed(Vector128 <Double> *pFld2 = &_fld2)
            {
                var result = Sse2.CompareScalarOrderedNotEqual(
                    Sse2.LoadVector128((Double *)(pFld1)),
                    Sse2.LoadVector128((Double *)(pFld2))
                    );

                ValidateResult(_fld1, _fld2, result);
            }
        }
Esempio n. 12
0
        public void RunClassLclFldScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));

            var test = new BooleanBinaryOpTest__CompareScalarOrderedNotEqualBoolean();

            fixed(Vector128 <Double> *pFld1 = &test._fld1)
            fixed(Vector128 <Double> *pFld2 = &test._fld2)
            {
                var result = Sse2.CompareScalarOrderedNotEqual(
                    Sse2.LoadVector128((Double *)(pFld1)),
                    Sse2.LoadVector128((Double *)(pFld2))
                    );

                ValidateResult(test._fld1, test._fld2, result);
            }
        }
Esempio n. 13
0
            public void RunStructFldScenario(BooleanBinaryOpTest__CompareScalarOrderedNotEqualBoolean testClass)
            {
                var result = Sse2.CompareScalarOrderedNotEqual(_fld1, _fld2);

                testClass.ValidateResult(_fld1, _fld2, result);
            }