Browse Source

Update src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs

Reverse access to dc

Co-authored-by: James Jackson-South <james_south@hotmail.com>
pull/1814/head
Brian Popow 4 years ago
committed by GitHub
parent
commit
50013d70f2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs

6
src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs

@ -969,10 +969,10 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossy
Vector128<short> hadd = Ssse3.HorizontalAdd(f0.AsInt16(), f0.AsInt16());
Vector64<short> lower = hadd.GetLower();
dc[0] = (uint)lower.GetElement(0);
dc[1] = (uint)lower.GetElement(1);
dc[2] = (uint)lower.GetElement(2);
dc[3] = (uint)lower.GetElement(3);
dc[2] = (uint)lower.GetElement(2);
dc[1] = (uint)lower.GetElement(1);
dc[0] = (uint)lower.GetElement(0);
}
else
#endif

Loading…
Cancel
Save