Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private static int IndexOfMinMaxVectorized128Size4Plus<T, TOperator, TInt>(ReadO
Vector128<T> result = Vector128.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector128<T> nanMask = IsNaN(result);
Vector128<T> nanMask = Vector128.IsNaN(result);
if (nanMask != Vector128<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -126,7 +126,7 @@ private static int IndexOfMinMaxVectorized128Size4Plus<T, TOperator, TInt>(ReadO
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector128<T> nanMask = IsNaN(current);
Vector128<T> nanMask = Vector128.IsNaN(current);
if (nanMask != Vector128<T>.Zero)
{
return int.CreateTruncating(currentIndex.ToScalar()) + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -160,7 +160,7 @@ private static int IndexOfMinMaxVectorized128Size2<T, TOperator>(ReadOnlySpan<T>
Vector128<T> result = Vector128.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector128<T> nanMask = IsNaN(result);
Vector128<T> nanMask = Vector128.IsNaN(result);
if (nanMask != Vector128<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -194,7 +194,7 @@ private static int IndexOfMinMaxVectorized128Size2<T, TOperator>(ReadOnlySpan<T>
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector128<T> nanMask = IsNaN(current);
Vector128<T> nanMask = Vector128.IsNaN(current);
if (nanMask != Vector128<T>.Zero)
{
return (int)currentIndex.ToScalar() + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -235,7 +235,7 @@ private static int IndexOfMinMaxVectorized128Size1<T, TOperator>(ReadOnlySpan<T>
Vector128<T> result = Vector128.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector128<T> nanMask = IsNaN(result);
Vector128<T> nanMask = Vector128.IsNaN(result);
if (nanMask != Vector128<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -271,7 +271,7 @@ private static int IndexOfMinMaxVectorized128Size1<T, TOperator>(ReadOnlySpan<T>
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector128<T> nanMask = IsNaN(current);
Vector128<T> nanMask = Vector128.IsNaN(current);
if (nanMask != Vector128<T>.Zero)
{
return (int)currentIndex.ToScalar() + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -324,7 +324,7 @@ private static int IndexOfMinMaxVectorized256Size4Plus<T, TOperator, TInt>(ReadO
Vector256<T> result = Vector256.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector256<T> nanMask = IsNaN(result);
Vector256<T> nanMask = Vector256.IsNaN(result);
if (nanMask != Vector256<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -357,7 +357,7 @@ private static int IndexOfMinMaxVectorized256Size4Plus<T, TOperator, TInt>(ReadO
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector256<T> nanMask = IsNaN(current);
Vector256<T> nanMask = Vector256.IsNaN(current);
if (nanMask != Vector256<T>.Zero)
{
return int.CreateTruncating(currentIndex.ToScalar()) + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -391,7 +391,7 @@ private static int IndexOfMinMaxVectorized256Size2<T, TOperator>(ReadOnlySpan<T>
Vector256<T> result = Vector256.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector256<T> nanMask = IsNaN(result);
Vector256<T> nanMask = Vector256.IsNaN(result);
if (nanMask != Vector256<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -425,7 +425,7 @@ private static int IndexOfMinMaxVectorized256Size2<T, TOperator>(ReadOnlySpan<T>
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector256<T> nanMask = IsNaN(current);
Vector256<T> nanMask = Vector256.IsNaN(current);
if (nanMask != Vector256<T>.Zero)
{
return (int)currentIndex.ToScalar() + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -466,7 +466,7 @@ private static int IndexOfMinMaxVectorized256Size1<T, TOperator>(ReadOnlySpan<T>
Vector256<T> result = Vector256.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector256<T> nanMask = IsNaN(result);
Vector256<T> nanMask = Vector256.IsNaN(result);
if (nanMask != Vector256<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -502,7 +502,7 @@ private static int IndexOfMinMaxVectorized256Size1<T, TOperator>(ReadOnlySpan<T>
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector256<T> nanMask = IsNaN(current);
Vector256<T> nanMask = Vector256.IsNaN(current);
if (nanMask != Vector256<T>.Zero)
{
return (int)currentIndex.ToScalar() + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -555,7 +555,7 @@ private static int IndexOfMinMaxVectorized512Size4Plus<T, TOperator, TInt>(ReadO
Vector512<T> result = Vector512.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector512<T> nanMask = IsNaN(result);
Vector512<T> nanMask = Vector512.IsNaN(result);
if (nanMask != Vector512<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -588,7 +588,7 @@ private static int IndexOfMinMaxVectorized512Size4Plus<T, TOperator, TInt>(ReadO
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector512<T> nanMask = IsNaN(current);
Vector512<T> nanMask = Vector512.IsNaN(current);
if (nanMask != Vector512<T>.Zero)
{
return int.CreateTruncating(currentIndex.ToScalar()) + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -622,7 +622,7 @@ private static int IndexOfMinMaxVectorized512Size2<T, TOperator>(ReadOnlySpan<T>
Vector512<T> result = Vector512.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector512<T> nanMask = IsNaN(result);
Vector512<T> nanMask = Vector512.IsNaN(result);
if (nanMask != Vector512<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -656,7 +656,7 @@ private static int IndexOfMinMaxVectorized512Size2<T, TOperator>(ReadOnlySpan<T>
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector512<T> nanMask = IsNaN(current);
Vector512<T> nanMask = Vector512.IsNaN(current);
if (nanMask != Vector512<T>.Zero)
{
return (int)currentIndex.ToScalar() + IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -697,7 +697,7 @@ private static int IndexOfMinMaxVectorized512Size1<T, TOperator>(ReadOnlySpan<T>
Vector512<T> result = Vector512.Create(x);
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector512<T> nanMask = IsNaN(result);
Vector512<T> nanMask = Vector512.IsNaN(result);
if (nanMask != Vector512<T>.Zero)
{
return IndexOfFirstMatch(nanMask);
Expand Down Expand Up @@ -733,7 +733,7 @@ private static int IndexOfMinMaxVectorized512Size1<T, TOperator>(ReadOnlySpan<T>
// Quick return if possible.
if (typeof(T) == typeof(float) || typeof(T) == typeof(double))
{
Vector512<T> nanMask = IsNaN(current);
Vector512<T> nanMask = Vector512.IsNaN(current);
if (nanMask != Vector512<T>.Zero)
{
return (int)currentIndex.ToScalar() + IndexOfFirstMatch(nanMask);
Expand Down
Loading
Loading