Vector128.WithUpper<T>(Vector128<T>, Vector64<T>) 方法

定义

创建一个新的 Vector128<T>,将高 64 位设置为指定值,并将低 64 位设置为与给定向量中的值相同的值。

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

类型参数

T

输入向量的类型。

参数

vector
Vector128<T>

要从中获取低 64 位的向量。

value
Vector64<T>

高 64 位。

返回

一个新的 Vector128<T>,将高 64 位设置为指定值,并将低 64 位设置为 vector 中的值。

例外

不支持 vector 类型 (T)。

适用于