27 references to Half
System.Private.CoreLib (27)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (2)
948public static Half Int16BitsToHalf(short value) => new Half((ushort)(value)); 1002public static Half UInt16BitsToHalf(ushort value) => new Half(value);
src\libraries\System.Private.CoreLib\src\System\Half.cs (25)
89public static Half Epsilon => new Half(EpsilonBits); // 5.9604645E-08 91public static Half PositiveInfinity => new Half(PositiveInfinityBits); // 1.0 / 0.0; 93public static Half NegativeInfinity => new Half(NegativeInfinityBits); // -1.0 / 0.0 95public static Half NaN => new Half(NegativeQNaNBits); // 0.0 / 0.0 98public static Half MinValue => new Half(MinValueBits); // -65504 101public static Half MaxValue => new Half(MaxValueBits); // 65504 594return new Half(RoundPackToHalf(sign, (short)(exp - 0x3F1), (ushort)(sigHalf | 0x4000))); 1100return IsNaN(value) ? value : new Half((ushort)(value._value ^ SignMask)); 1198static Half IAdditiveIdentity<Half, Half>.AdditiveIdentity => new Half(PositiveZeroBits); 1246return new Half((ushort)(left._value & right._value)); 1252return new Half((ushort)(left._value | right._value)); 1258return new Half((ushort)(left._value ^ right._value)); 1264return new Half((ushort)(~value._value)); 1424public static Half E => new Half(EBits); 1427public static Half Pi => new Half(PiBits); 1430public static Half Tau => new Half(TauBits); 1437public static Half NegativeZero => new Half(NegativeZeroBits); 1475return new Half((ushort)bits); 1508return new Half((ushort)bits); 1628public static Half MultiplicativeIdentity => new Half(PositiveOneBits); 1664return new Half((ushort)((xbits & ~SignMask) | (ybits & SignMask))); 1748public static Half One => new Half(PositiveOneBits); 1754public static Half Zero => new Half(PositiveZeroBits); 1757public static Half Abs(Half value) => new Half((ushort)(value._value & ~SignMask)); 2194public static Half NegativeOne => new Half(NegativeOneBits);