Skip to content

Commit 1452ba0

Browse files
committed
Remove not needed GetLower
1 parent f0cb89e commit 1452ba0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -967,12 +967,11 @@ public static void Mean16x4(Span<byte> input, Span<uint> dc)
967967
Vector128<int> e1 = Sse2.Add(d2, d3);
968968
Vector128<int> f0 = Sse2.Add(e0, e1);
969969
Vector128<short> hadd = Ssse3.HorizontalAdd(f0.AsInt16(), f0.AsInt16());
970-
Vector64<short> lower = hadd.GetLower();
971970

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);
971+
dc[3] = (uint)hadd.GetElement(3);
972+
dc[2] = (uint)hadd.GetElement(2);
973+
dc[1] = (uint)hadd.GetElement(1);
974+
dc[0] = (uint)hadd.GetElement(0);
976975
}
977976
else
978977
#endif

0 commit comments

Comments
 (0)