We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0cb89e commit 1452ba0Copy full SHA for 1452ba0
src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs
@@ -967,12 +967,11 @@ public static void Mean16x4(Span<byte> input, Span<uint> dc)
967
Vector128<int> e1 = Sse2.Add(d2, d3);
968
Vector128<int> f0 = Sse2.Add(e0, e1);
969
Vector128<short> hadd = Ssse3.HorizontalAdd(f0.AsInt16(), f0.AsInt16());
970
- Vector64<short> lower = hadd.GetLower();
971
972
- dc[3] = (uint)lower.GetElement(3);
973
- dc[2] = (uint)lower.GetElement(2);
974
- dc[1] = (uint)lower.GetElement(1);
975
- dc[0] = (uint)lower.GetElement(0);
+ dc[3] = (uint)hadd.GetElement(3);
+ dc[2] = (uint)hadd.GetElement(2);
+ dc[1] = (uint)hadd.GetElement(1);
+ dc[0] = (uint)hadd.GetElement(0);
976
}
977
else
978
#endif
0 commit comments