Beispiel #1
0
        public void RunClassFldScenario()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));

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

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

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

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

            var test   = new BooleanComparisonOpTest__CompareScalarOrderedLessThanOrEqualBoolean();
            var result = Sse2.CompareScalarOrderedLessThanOrEqual(test._fld1, test._fld2);

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

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

            ValidateResult(left, right, result);
        }
Beispiel #5
0
        public void RunLclVarScenario_LoadAligned()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));

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

            ValidateResult(left, right, result);
        }
        public void RunLclVarScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));

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

            ValidateResult(op1, op2, result);
        }
Beispiel #7
0
        public void RunBasicScenario_UnsafeRead()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));

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

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

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

            ValidateResult(test._fld1, test._fld2, result);
        }
            public void RunStructFldScenario_Load(BooleanBinaryOpTest__CompareScalarOrderedLessThanOrEqualBoolean testClass)
            {
                fixed(Vector128 <Double> *pFld1 = &_fld1)
                fixed(Vector128 <Double> *pFld2 = &_fld2)
                {
                    var result = Sse2.CompareScalarOrderedLessThanOrEqual(
                        Sse2.LoadVector128((Double *)(pFld1)),
                        Sse2.LoadVector128((Double *)(pFld2))
                        );

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

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

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

            var test = new BooleanBinaryOpTest__CompareScalarOrderedLessThanOrEqualBoolean();

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

                ValidateResult(test._fld1, test._fld2, result);
            }
        }
Beispiel #12
0
            public void RunStructFldScenario(BooleanComparisonOpTest__CompareScalarOrderedLessThanOrEqualBoolean testClass)
            {
                var result = Sse2.CompareScalarOrderedLessThanOrEqual(_fld1, _fld2);

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