Beispiel #1
0
            public void RunStructFldScenario(SimpleBinaryOpTest__MaxUInt16 testClass)
            {
                var result = Sse41.Max(_fld1, _fld2);

                Unsafe.Write(testClass._dataTable.outArrayPtr, result);
                testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
            }
Beispiel #2
0
            public void RunStructFldScenario_Load(SimpleBinaryOpTest__MaxUInt16 testClass)
            {
                fixed(Vector256 <UInt16> *pFld1 = &_fld1)
                fixed(Vector256 <UInt16> *pFld2 = &_fld2)
                {
                    var result = Avx2.Max(
                        Avx.LoadVector256((UInt16 *)(pFld1)),
                        Avx.LoadVector256((UInt16 *)(pFld2))
                        );

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