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