Browse Source

Update src/ImageSharp/Common/Helpers/SimdUtils.cs

Co-authored-by: Anton Firszov <antonfir@gmail.com>
pull/1574/head
James Jackson-South 6 years ago
committed by GitHub
parent
commit
6d1a15228c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/Common/Helpers/SimdUtils.cs

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

@ -50,7 +50,7 @@ namespace SixLabors.ImageSharp
{
#if SUPPORTS_RUNTIME_INTRINSICS
if (Avx.IsSupported)
if (Avx2.IsSupported)
{
ref Vector256<float> v256 = ref Unsafe.As<Vector<float>, Vector256<float>>(ref v);
Vector256<float> vRound = Avx.RoundToNearestInteger(v256);

Loading…
Cancel
Save