8 references to UInt16BitsToHalf
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (4)
795
return BitConverter.
UInt16BitsToHalf
((ushort)bitValue);
1136
return BitConverter.
UInt16BitsToHalf
((ushort)(signInt | NaNBits | sigInt));
1217
static Half IBinaryNumber<Half>.AllBitsSet => BitConverter.
UInt16BitsToHalf
(0xFFFF);
2404
static Half IBinaryFloatParseAndFormatInfo<Half>.BitsToFloat(ulong bits) => BitConverter.
UInt16BitsToHalf
((ushort)(bits));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
956
result = (actualValue >= BitConverter.
UInt16BitsToHalf
(0x7800)) ? MaxValue :
957
(actualValue <= BitConverter.
UInt16BitsToHalf
(0xF800)) ? MinValue : (short)actualValue;
1043
result = (actualValue >= BitConverter.
UInt16BitsToHalf
(0x7800)) ? MaxValue :
1044
(actualValue <= BitConverter.
UInt16BitsToHalf
(0xF800)) ? MinValue : (short)actualValue;