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