Browse Source

Fix coverage

js/color-alpha-handling
James Jackson-South 6 years ago
parent
commit
28dc056d83
  1. 2
      src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs
  2. 2
      tests/ImageSharp.Tests/Common/SimdUtilsTests.Shuffle.cs

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

@ -74,7 +74,7 @@ namespace SixLabors.ImageSharp
if (Avx2.IsSupported || Ssse3.IsSupported)
{
int remainder;
if (Avx.IsSupported)
if (Avx2.IsSupported)
{
remainder = ImageMaths.ModuloP2(source.Length, Vector256<byte>.Count);
}

2
tests/ImageSharp.Tests/Common/SimdUtilsTests.Shuffle.cs

@ -44,7 +44,7 @@ namespace SixLabors.ImageSharp.Tests.Common
FeatureTestRunner.RunWithHwIntrinsicsFeature(
RunTest,
control,
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX2 | HwIntrinsics.DisableSSE);
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX | HwIntrinsics.DisableSSE);
}
[Theory]

Loading…
Cancel
Save