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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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); |
|
|
|
|