共用方式為


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) 的類型。

適用於