コード例 #1
0
            public void RunStructFldScenario(SimpleUnaryOpTest__RoundToNegativeInfinityScalarSingle testClass)
            {
                var result = Sse41.RoundToNegativeInfinityScalar(_fld1);

                Unsafe.Write(testClass._dataTable.outArrayPtr, result);
                testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
            }
コード例 #2
0
            public void RunStructFldScenario_Load(SimpleUnaryOpTest__RoundToNegativeInfinityScalarSingle testClass)
            {
                fixed(Vector128 <Single> *pFld1 = &_fld1)
                {
                    var result = Sse41.RoundToNegativeInfinityScalar(
                        Sse.LoadVector128((Single *)(pFld1))
                        );

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