Пример #1
0
        public void RunClassLclFldScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));

            var test = new SimpleTernaryOpTest__DotProductBySelectedQuadruplet_Vector128_UInt32_Vector64_Byte_1();

            fixed(Vector128 <UInt32> *pFld1 = &test._fld1)
            fixed(Vector128 <Byte> *pFld2 = &test._fld2)
            fixed(Vector64 <Byte> *pFld3  = &test._fld3)
            {
                var result = Dp.DotProductBySelectedQuadruplet(
                    AdvSimd.LoadVector128((UInt32 *)(pFld1)),
                    AdvSimd.LoadVector128((Byte *)(pFld2)),
                    AdvSimd.LoadVector64((Byte *)(pFld3)),
                    1
                    );

                Unsafe.Write(_dataTable.outArrayPtr, result);
                ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
            }
        }