Browse Source

Formatting

pull/2233/head
James Jackson-South 4 years ago
parent
commit
eb864c5740
  1. 5
      src/ImageSharp/PixelFormats/HalfTypeHelper.cs

5
src/ImageSharp/PixelFormats/HalfTypeHelper.cs

@ -16,10 +16,7 @@ internal static class HalfTypeHelper
/// <param name="value">The float to pack</param>
/// <returns>The <see cref="ushort"/></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ushort Pack(float value)
{
return BitConverter.HalfToUInt16Bits((Half)value);
}
internal static ushort Pack(float value) => BitConverter.HalfToUInt16Bits((Half)value);
/// <summary>
/// Unpacks a <see cref="ushort"/> into a <see cref="float"/>.

Loading…
Cancel
Save