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

定義

決定向量中哪些元素為奇積分值。

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

類型參數

T

向量中專案的型別。

參數

vector
Vector128<T>

要檢查的向量。

傳回

一個向量,其元素全為位元集合或零,取決於對 vector 應元素是否為奇整數值。

備註

此方法正確處理浮點數值,因此 3.0 對應元素回傳 all-bits-set ,而 3.3 回傳 zero

如果這個方法會回傳 zero 對應元素,並不代表該 IsEvenInteger 元素也會回傳 all-bits-set 。 例如,帶有分數部分的數字既 3.3非偶數也非奇數。

適用於