public static void Ctor_Empty()
        {
            var value = new TableBasedHalf();

            Assert.Equal(0x0000, HalfToUInt16Bits(value));
        }
 public static void Equals(TableBasedHalf value, object obj, bool expected)
 {
     Assert.Equal(expected, value.Equals(obj));
 }
        public static void ToSingle(TableBasedHalf half, float verify)
        {
            float f = (float)half;

            Assert.Equal(f, verify, precision: 1);
        }
 public static void CompareTo(TableBasedHalf value, object obj, int expected)
 {
     Assert.Equal(expected, Math.Sign(value.CompareTo(obj)));
 }
 public static void IsSubnormal(TableBasedHalf value, bool expected)
 {
     Assert.Equal(expected, TableBasedHalf.IsSubnormal(value));
 }
 public static void IsPositiveInfinity(TableBasedHalf value, bool expected)
 {
     Assert.Equal(expected, TableBasedHalf.IsPositiveInfinity(value));
 }
 public static void IsNegative(TableBasedHalf value, bool expected)
 {
     Assert.Equal(expected, TableBasedHalf.IsNegative(value));
 }
 private static unsafe ushort HalfToUInt16Bits(TableBasedHalf value)
 {
     return(*((ushort *)&value));
 }