Vector128.WithUpper<T>(Vector128<T>, Vector64<T>) Method

Definition

Creates a new Vector128<T> with the upper 64-bits set to the specified value and the lower 64-bits set to the same value as that in the given vector.

public static System.Runtime.Intrinsics.Vector128<T> WithUpper<T> (this System.Runtime.Intrinsics.Vector128<T> vector, System.Runtime.Intrinsics.Vector64<T> value) where T : struct;
public static System.Runtime.Intrinsics.Vector128<T> WithUpper<T> (this System.Runtime.Intrinsics.Vector128<T> vector, System.Runtime.Intrinsics.Vector64<T> value);

Type Parameters

T

The type of the input vector.

Parameters

vector
Vector128<T>

The vector to get the lower 64-bits from.

value
Vector64<T>

The upper 64-bits.

Returns

A new Vector128<T> with the upper 64-bits set to the specified value and the lower 64-bits set to those in vector.

Exceptions

The type of vector (T) is not supported.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9