Skip to content

Commit

Permalink
Try Vector128 before Vector (dotnet#89797)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewing authored Aug 4, 2023
1 parent f97a4b3 commit 3be370e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ internal static unsafe nuint GetIndexOfFirstNonAsciiByte(byte* pBuffer, nuint bu
{
return GetIndexOfFirstNonAsciiByte_Intrinsified(pBuffer, bufferLength);
}
else if (Vector128.IsHardwareAccelerated)
{
return GetIndexOfFirstNonAsciiByte_Vector(pBuffer, bufferLength);
}
else
{
return GetIndexOfFirstNonAsciiByte_Default(pBuffer, bufferLength);
Expand Down

0 comments on commit 3be370e

Please sign in to comment.