Skip to content

Commit

Permalink
fix issue from rogue ctrl-z
Browse files Browse the repository at this point in the history
  • Loading branch information
saucecontrol committed Jan 8, 2020
1 parent b334866 commit f50abe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MagicScaler/Magic/GreyConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>.Zero;

Expand All @@ -218,7 +218,7 @@ unsafe private static void greyLinearToGreyFloat(byte* ipstart, byte* opstart, i
{
var vzero = Vector<float>.Zero;

ipe -= -VectorF.Count;
ipe -= VectorF.Count;
while (ip <= ipe)
{
var v = Unsafe.ReadUnaligned<VectorF>(ip);
Expand Down

0 comments on commit f50abe7

Please sign in to comment.