Edit

Share via


Vector128.IsOddInteger<T>(Vector128<T>) Method

Definition

Determines which elements in a vector are odd integral values.

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)

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector128<T>

The vector to be checked.

Returns

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in vector were odd integral values.

Remarks

This method correctly handles floating-point values, and so 3.0 returns all-bits-set for a corresponding element, while 3.3 returns zero.

If this method returns zero for a corresponding element, it doesn't imply that IsEvenInteger will return all-bits-set for that element. A number with a fractional portion, for example, 3.3, is neither even nor odd.

Applies to