Table of Contents

Method LastIndexOfWhereAllBitsSet

Namespace
Zyl.ExSpans.Impl
Assembly
ExSpans.dll

LastIndexOfWhereAllBitsSet<T>(Vector256<T>)

Determines the index of the last element in a vector that has all bits set.

public static int LastIndexOfWhereAllBitsSet<T>(Vector256<T> vector) where T : struct

Parameters

vector Vector256<T>

The vector whose elements are being checked.

Returns

int

The index into vector representing the last element that had all bits set; otherwise, -1 if no such element exists.

Type Parameters

T

The type of the elements in the vector.

Exceptions

NotSupportedException

The type of vector (T) is not supported.