Skip to content

Commit

Permalink
fix minor error in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Nuon committed Jun 24, 2024
1 parent 0da00cd commit b8db3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UTF8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ private unsafe static (int utfadjust, int scalaradjust) calculateErrorPathadjust

Vector128<byte> currentBlock = AdvSimd.LoadVector128(pInputBuffer + processedLength);
if (AdvSimd.Arm64.MaxAcross(Vector128.AsUInt32(AdvSimd.And(currentBlock, v80))).ToScalar() == 0)
// We could it with (AdvSimd.Arm64.MaxAcross(currentBlock).ToScalar() <= 127) but it is slower on some
// We could also use (AdvSimd.Arm64.MaxAcross(currentBlock).ToScalar() <= 127) but it is slower on some
// hardware.
{
// We have an ASCII block, no need to process it, but
Expand Down

0 comments on commit b8db3bb

Please sign in to comment.