27 references to Half
System.Private.CoreLib (27)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (2)
1002
public static Half Int16BitsToHalf(short value) => new
Half
((ushort)(value));
1072
public static Half UInt16BitsToHalf(ushort value) => new
Half
(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (25)
92
public static Half Epsilon { [Intrinsic] get => new
Half
(EpsilonBits); } // 5.9604645E-08
94
public static Half PositiveInfinity { [Intrinsic] get => new
Half
(PositiveInfinityBits); } // 1.0 / 0.0;
96
public static Half NegativeInfinity { [Intrinsic] get => new
Half
(NegativeInfinityBits); } // -1.0 / 0.0
98
public static Half NaN { [Intrinsic] get => new
Half
(NegativeQNaNBits); } // 0.0 / 0.0
101
public static Half MinValue { [Intrinsic] get => new
Half
(MinValueBits); } // -65504
104
public static Half MaxValue { [Intrinsic] get => new
Half
(MaxValueBits); } // 65504
616
return new
Half
(RoundPackToHalf(sign, (short)(exp - 0x3F1), (ushort)(sigHalf | 0x4000)));
1133
return IsNaN(value) ? value : new
Half
((ushort)(value._value ^ SignMask));
1228
static Half IAdditiveIdentity<Half, Half>.AdditiveIdentity => new
Half
(PositiveZeroBits);
1276
return new
Half
((ushort)(left._value & right._value));
1282
return new
Half
((ushort)(left._value | right._value));
1288
return new
Half
((ushort)(left._value ^ right._value));
1294
return new
Half
((ushort)(~value._value));
1460
public static Half E => new
Half
(EBits);
1463
public static Half Pi => new
Half
(PiBits);
1466
public static Half Tau => new
Half
(TauBits);
1473
public static Half NegativeZero => new
Half
(NegativeZeroBits);
1511
return new
Half
((ushort)bits);
1544
return new
Half
((ushort)bits);
1677
public static Half MultiplicativeIdentity => new
Half
(PositiveOneBits);
1714
return new
Half
((ushort)((xbits & ~SignMask) | (ybits & SignMask)));
1798
public static Half One { [Intrinsic] get => new
Half
(PositiveOneBits); }
1804
public static Half Zero { [Intrinsic] get => new
Half
(PositiveZeroBits); }
1807
public static Half Abs(Half value) => new
Half
((ushort)(value._value & ~SignMask));
2278
public static Half NegativeOne => new
Half
(NegativeOneBits);