8 references to UInt16BitsToHalf
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Half.cs (4)
780
return BitConverter.
UInt16BitsToHalf
((ushort)bitValue);
1120
return BitConverter.
UInt16BitsToHalf
((ushort)(signInt | NaNBits | sigInt));
1205
static Half IBinaryNumber<Half>.AllBitsSet => BitConverter.
UInt16BitsToHalf
(0xFFFF);
2359
static Half IBinaryFloatParseAndFormatInfo<Half>.BitsToFloat(ulong bits) => BitConverter.
UInt16BitsToHalf
((ushort)(bits));
src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
971
result = (actualValue >= BitConverter.
UInt16BitsToHalf
(0x7800)) ? MaxValue :
972
(actualValue <= BitConverter.
UInt16BitsToHalf
(0xF800)) ? MinValue : (short)actualValue;
1050
result = (actualValue >= BitConverter.
UInt16BitsToHalf
(0x7800)) ? MaxValue :
1051
(actualValue <= BitConverter.
UInt16BitsToHalf
(0xF800)) ? MinValue : (short)actualValue;