Edit

Share via


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

Definition

Determines which elements in a vector are integral values.

public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector128<T> IsInteger(System::Runtime::Intrinsics::Vector128<T> vector);
public static System.Runtime.Intrinsics.Vector128<T> IsInteger<T>(System.Runtime.Intrinsics.Vector128<T> vector);
static member IsInteger : System.Runtime.Intrinsics.Vector128<'T> -> System.Runtime.Intrinsics.Vector128<'T>
Public Function IsInteger(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 integral values.

Remarks

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

Applies to