예제 #1
0
            public void RunStructFldScenario(SimpleUnaryOpTest__DuplicateEvenIndexedSingle testClass)
            {
                var result = Avx.DuplicateEvenIndexed(_fld);

                Unsafe.Write(testClass._dataTable.outArrayPtr, result);
                testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
            }
            public void RunStructFldScenario_Load(SimpleUnaryOpTest__DuplicateEvenIndexedSingle testClass)
            {
                fixed(Vector256 <Single> *pFld1 = &_fld1)
                {
                    var result = Avx.DuplicateEvenIndexed(
                        Avx.LoadVector256((Single *)(pFld1))
                        );

                    Unsafe.Write(testClass._dataTable.outArrayPtr, result);
                    testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
                }
            }