Skip to content

Commit

Permalink
converted condition to an assert
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Jun 11, 2020
1 parent de098d3 commit 1ee145e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1842,10 +1842,7 @@ private static unsafe nuint UnalignedCountVectorFromEnd(ref byte searchSpace, in
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool TryFindFirstMatchedLane(Vector128<byte> mask, Vector128<byte> compareResult, ref int matchedLane)
{
if (!AdvSimd.IsSupported)
{
return false;
}
Debug.Assert(AdvSimd.IsSupported);

ulong matches = AdvSimd.Arm64.MaxPairwise(compareResult, compareResult).AsUInt64().ToScalar();
if (matches == 0)
Expand Down

0 comments on commit 1ee145e

Please sign in to comment.