语言

Vector128.IsEvenInteger<T>(Vector128<T>) 方法

定义

确定向量中的哪些元素甚至是整型值。

public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector128<T> IsEvenInteger(System::Runtime::Intrinsics::Vector128<T> vector);
public static System.Runtime.Intrinsics.Vector128<T> IsEvenInteger<T>(System.Runtime.Intrinsics.Vector128<T> vector);
static member IsEvenInteger : System.Runtime.Intrinsics.Vector128<'T> -> System.Runtime.Intrinsics.Vector128<'T>
Public Function IsEvenInteger(Of T) (vector As Vector128(Of T)) As Vector128(Of T)

类型参数

T

向量中的元素的类型。

参数

vector
Vector128<T>

要检查的向量。

返回

一个矢量,其元素是全位集或零,具体取决于中相应的元素 vector 是否为整型值。

注解

此方法正确处理浮点值,因此2.0返回时2.2返回all-bits-setzero。

如果此方法为 zero 相应的元素返回,则并不表示 IsOddInteger 将返回 all-bits-set 该元素。 具有小数部分 3.3的数字,既不是偶数,也不是奇数。

适用于