From cdf6eed33b7392e1abccea2da277b22df8498945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Foidl?= Date: Sun, 26 Mar 2023 17:19:17 +0200 Subject: [PATCH] Fixed build --- src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs b/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs index 8eebf7fb9..d4705fed7 100644 --- a/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs +++ b/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs @@ -194,7 +194,7 @@ internal static partial class SimdUtils { if (Ssse3.IsSupported) { - int remainder = source.Length & (Vector128.Count * 4 - 1); // bit-hack for modulo + int remainder = source.Length & ((Vector128.Count * 4) - 1); // bit-hack for modulo int sourceCount = source.Length - remainder; int destCount = (int)((uint)sourceCount * 3 / 4);