Browse Source

Remove not need Clear of tmp buffer

pull/1814/head
Brian Popow 4 years ago
parent
commit
1418e53bfb
  1. 1
      src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs

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

@ -947,7 +947,6 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossy
#if SUPPORTS_RUNTIME_INTRINSICS
if (Sse2.IsSupported)
{
tmp.Clear();
Vector128<byte> a0 = Unsafe.As<byte, Vector128<byte>>(ref MemoryMarshal.GetReference(input));
Vector128<byte> a1 = Unsafe.As<byte, Vector128<byte>>(ref MemoryMarshal.GetReference(input.Slice(WebpConstants.Bps, 16)));
Vector128<byte> a2 = Unsafe.As<byte, Vector128<byte>>(ref MemoryMarshal.GetReference(input.Slice(WebpConstants.Bps * 2, 16)));

Loading…
Cancel
Save