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

Definition

创建一个新的 Vector128<T>,将高 64 位设置为指定值,并将低 64 位设置为与给定向量中的值相同的值。Creates a new Vector128<T> with the upper 64-bits set to the specified value and the upper 64-bits set to the same value as that in the given vector.

public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector128<T> WithUpper(System::Runtime::Intrinsics::Vector128<T> vector, System::Runtime::Intrinsics::Vector64<T> value);
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;
static member WithUpper : System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> * System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function WithUpper(Of T As Structure) (vector As Vector128(Of T), value As Vector64(Of T)) As Vector128(Of T)

Type Parameters

T

输入向量的类型。The type of the input vector.

Parameters

vector
Vector128<T>

要从中获取低 64 位的向量。The vector to get the lower 64-bits from.

value
Vector64<T>

高 64 位的值作为 Vector64<T>The value of the upper 64-bits as a Vector64<T>.

Returns

Vector128<T>

一个新的 Vector128<T>,将高 64 位设置为指定值,并将低 64 位设置为与 vector 中的值相同的值。A new Vector128<T> with the upper 64-bits set to the specified value and the upper 64-bits set to the same value as that in vector.

Exceptions

不支持 vector 类型 (T)。The type of vector (T) is not supported.

Applies to