Browse Source

Fixed build

pull/2419/head
Günther Foidl 3 years ago
parent
commit
cdf6eed33b
  1. 2
      src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs

2
src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs

@ -194,7 +194,7 @@ internal static partial class SimdUtils
{
if (Ssse3.IsSupported)
{
int remainder = source.Length & (Vector128<byte>.Count * 4 - 1); // bit-hack for modulo
int remainder = source.Length & ((Vector128<byte>.Count * 4) - 1); // bit-hack for modulo
int sourceCount = source.Length - remainder;
int destCount = (int)((uint)sourceCount * 3 / 4);

Loading…
Cancel
Save