Browse Source

Fix coverage

pull/1404/head
James Jackson-South 6 years ago
parent
commit
299ea10e82
  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) if (Avx2.IsSupported || Ssse3.IsSupported)
{ {
int remainder; int remainder;
if (Avx.IsSupported) if (Avx2.IsSupported)
{ {
remainder = ImageMaths.ModuloP2(source.Length, Vector256<byte>.Count); 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( FeatureTestRunner.RunWithHwIntrinsicsFeature(
RunTest, RunTest,
control, control,
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX2 | HwIntrinsics.DisableSSE); HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX | HwIntrinsics.DisableSSE);
} }
[Theory] [Theory]

Loading…
Cancel
Save