Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update src/libraries/System.Private.CoreLib/src/System/Runtime/Intrin…
…sics/Vector512.cs

Co-authored-by: Jeff Handley <[email protected]>
  • Loading branch information
tannergooding and jeffhandley authored Feb 5, 2024
commit d9bf32c38e3752abc08ef402b688e451201e7032
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public static Vector512<T> Create<T>(ReadOnlySpan<T> values)
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.values);
}

return Unsafe.ReadUnaligned<Vector256<T>>(ref Unsafe.As<T, byte>(ref MemoryMarshal.GetReference(values)));
return Unsafe.ReadUnaligned<Vector512<T>>(ref Unsafe.As<T, byte>(ref MemoryMarshal.GetReference(values)));
}

/// <summary>Creates a new <see cref="Vector512{Byte}" /> instance with each element initialized to the corresponding specified value.</summary>
Expand Down