Browse Source

Attempt to fix left shift

pull/2645/head
James Jackson-South 2 years ago
parent
commit
d9126ea991
  1. 4
      src/ImageSharp/Common/Helpers/Vector128Utilities.cs

4
src/ImageSharp/Common/Helpers/Vector128Utilities.cs

@ -111,7 +111,9 @@ internal static class Vector128Utilities
{ {
if (Sse2.IsSupported) if (Sse2.IsSupported)
{ {
return Sse2.ShiftRightLogical128BitLane(value, numBytes); #pragma warning disable CA1857 // A constant is expected for the parameter
return Sse2.ShiftRightLogical128BitLane(value, (byte)(16 - numBytes));
#pragma warning restore CA1857 // A constant is expected for the parameter
} }
if (AdvSimd.IsSupported) if (AdvSimd.IsSupported)

Loading…
Cancel
Save