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 28025e7 commit 4c1ecfaCopy full SHA for 4c1ecfa
src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs
@@ -1030,10 +1030,10 @@ internal static void NormalizedFloatToByteSaturate(
1030
w2 = Vector128_.Clamp(w2, min, max);
1031
w3 = Vector128_.Clamp(w3, min, max);
1032
1033
- Vector128<short> u0 = Vector128.Narrow(w0, w1);
1034
- Vector128<short> u1 = Vector128.Narrow(w2, w3);
+ Vector128<ushort> u0 = Vector128.Narrow(w0, w1).AsUInt16();
+ Vector128<ushort> u1 = Vector128.Narrow(w2, w3).AsUInt16();
1035
1036
- Unsafe.Add(ref destinationBase, i) = Vector128.Narrow(u0, u1).AsByte();
+ Unsafe.Add(ref destinationBase, i) = Vector128.Narrow(u0, u1);
1037
}
1038
1039
0 commit comments