Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed May 19, 2021
1 parent 2aea56a commit 7b8cc17
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public static Vector128<ulong> AsUInt64<T>(this Vector128<T> vector)
/// <summary>Reinterprets a <see cref="Vector2" /> as a new <see cref="Vector128{Single}" />.</summary>
/// <param name="value">The vector to reinterpret.</param>
/// <returns><paramref name="value" /> reinterpreted as a new <see cref="Vector128{Single}" />.</returns>
[MethodImpl(MethodImplOptions.NoOptimization)] // Workaround https://github.com/dotnet/runtime/issues/52959
public static Vector128<float> AsVector128(this Vector2 value)
{
return new Vector4(value, 0.0f, 0.0f).AsVector128();
Expand All @@ -184,6 +185,7 @@ public static Vector128<float> AsVector128(this Vector2 value)
/// <summary>Reinterprets a <see cref="Vector3" /> as a new <see cref="Vector128{Single}" />.</summary>
/// <param name="value">The vector to reinterpret.</param>
/// <returns><paramref name="value" /> reinterpreted as a new <see cref="Vector128{Single}" />.</returns>
[MethodImpl(MethodImplOptions.NoOptimization)] // Workaround https://github.com/dotnet/runtime/issues/52959
public static Vector128<float> AsVector128(this Vector3 value)
{
return new Vector4(value, 0.0f).AsVector128();
Expand Down

0 comments on commit 7b8cc17

Please sign in to comment.