Skip to content

Commit

Permalink
Add guard around existing AdvSimdEncode callsite to exclude on Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
mdh1418 committed Jan 11, 2024
1 parent e7e9f95 commit 7dbdc18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static unsafe OperationStatus EncodeToUtf8(ReadOnlySpan<byte> bytes, Span
if (src == srcEnd)
goto DoneExit;
}

#if !MONO
end = srcMax - 48;
if (AdvSimd.Arm64.IsSupported && (end >= src))
{
Expand All @@ -93,7 +93,7 @@ public static unsafe OperationStatus EncodeToUtf8(ReadOnlySpan<byte> bytes, Span
if (src == srcEnd)
goto DoneExit;
}

#endif
end = srcMax - 16;
if ((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && BitConverter.IsLittleEndian && (end >= src))
{
Expand Down

0 comments on commit 7dbdc18

Please sign in to comment.