Vector64.ToVector128<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> ToVector128(System::Runtime::Intrinsics::Vector64<T> vector);
public static System.Runtime.Intrinsics.Vector128<T> ToVector128<T> (this System.Runtime.Intrinsics.Vector64<T> vector) where T : struct;
static member ToVector128 : System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function ToVector128(Of T As Structure) (vector As Vector64(Of T)) As Vector128(Of T)

类型参数

T

输入向量的类型。

参数

vector
Vector64<T>

要扩展的向量。

返回

Vector128<T>

一个新的 Vector128<T>,将低 64 位设为 vector 的值,将高 64 位初始化为零。

例外

不支持 vector 类型 (T)。

适用于