public void RunBasicScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario)); Int64[] values = new Int64[ElementCount]; for (int i = 0; i < ElementCount; i++) { values[i] = TestLibrary.Generator.GetInt64(); } Vector64 <Int64> value = Vector64.Create(values[0]); Vector128 <Int64> result = value.ToVector128(); ValidateResult(result, values, isUnsafe: false); Vector128 <Int64> unsafeResult = value.ToVector128Unsafe(); ValidateResult(unsafeResult, values, isUnsafe: true); }
public void RunBasicScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario)); Byte[] values = new Byte[ElementCount]; for (int i = 0; i < ElementCount; i++) { values[i] = TestLibrary.Generator.GetByte(); } Vector64 <Byte> value = Vector64.Create(values[0], values[1], values[2], values[3], values[4], values[5], values[6], values[7]); Vector128 <Byte> result = value.ToVector128(); ValidateResult(result, values, isUnsafe: false); Vector128 <Byte> unsafeResult = value.ToVector128Unsafe(); ValidateResult(unsafeResult, values, isUnsafe: true); }