public void RunStructFldScenario(InsertScalarTest__InsertScalar_Vector128_UInt64_1 testClass) { var result = AdvSimd.InsertScalar(_fld1, 1, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); }
public void RunStructFldScenario_Load(InsertScalarTest__InsertScalar_Vector128_UInt64_1 testClass) { fixed(Vector128 <UInt64> *pFld1 = &_fld1) fixed(Vector64 <UInt64> *pFld2 = &_fld3) { var result = AdvSimd.InsertScalar( AdvSimd.LoadVector128((UInt64 *)pFld1), 1, AdvSimd.LoadVector64((UInt64 *)pFld2) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } }