From f50abe7064cf186b990fd04d484d576c7e0a1720 Mon Sep 17 00:00:00 2001 From: Clinton Ingram Date: Tue, 7 Jan 2020 17:43:10 -0800 Subject: [PATCH] fix issue from rogue ctrl-z --- src/MagicScaler/Magic/GreyConverter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MagicScaler/Magic/GreyConverter.cs b/src/MagicScaler/Magic/GreyConverter.cs index 6483eed5..359baf69 100644 --- a/src/MagicScaler/Magic/GreyConverter.cs +++ b/src/MagicScaler/Magic/GreyConverter.cs @@ -196,7 +196,7 @@ unsafe private static void greyLinearToGreyFloat(byte* ipstart, byte* opstart, i float* ip = (float*)ipstart, ipe = (float*)(ipstart + cb), op = (float*)opstart; #if HWINTRINSICS - if (!Avx.IsSupported) + if (Avx.IsSupported) { var vzero = Vector256.Zero; @@ -218,7 +218,7 @@ unsafe private static void greyLinearToGreyFloat(byte* ipstart, byte* opstart, i { var vzero = Vector.Zero; - ipe -= -VectorF.Count; + ipe -= VectorF.Count; while (ip <= ipe) { var v = Unsafe.ReadUnaligned(ip);