public void RunStructFldScenario(ImmUnaryOpTest__DuplicateSelectedScalarToVector128_V128_Int16_4 testClass) { var result = AdvSimd.DuplicateSelectedScalarToVector128(_fld, 4); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr); }
public void RunStructFldScenario_Load(ImmUnaryOpTest__DuplicateSelectedScalarToVector128_V128_Int16_4 testClass) { fixed(Vector128 <Int16> *pFld = &_fld) { var result = AdvSimd.DuplicateSelectedScalarToVector128( AdvSimd.LoadVector128((Int16 *)(pFld)), 4 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr); } }