40 references to UInt64BitsToDouble
Microsoft.Diagnostics.DataContractReader.Contracts (1)
PrintfStressMessageFormatter.cs (1)
167
double value = BitConverter.
UInt64BitsToDouble
(valueAsBits.Value);
System.Private.CoreLib (35)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (15)
165
internal static double CreateDouble(bool sign, ushort exp, ulong sig) => BitConverter.
UInt64BitsToDouble
((sign ? SignMask : 0UL) + ((ulong)exp << BiasedExponentShift) + sig);
542
static double IBinaryNumber<double>.AllBitsSet => BitConverter.
UInt64BitsToDouble
(0xFFFF_FFFF_FFFF_FFFF);
585
return BitConverter.
UInt64BitsToDouble
(bits);
592
return BitConverter.
UInt64BitsToDouble
(bits);
599
return BitConverter.
UInt64BitsToDouble
(bits);
606
return BitConverter.
UInt64BitsToDouble
(bits);
1601
ax = BitConverter.
UInt64BitsToDouble
(xBits);
1611
ay = BitConverter.
UInt64BitsToDouble
(yBits);
1618
ax = BitConverter.
UInt64BitsToDouble
(xBits);
1619
ay = BitConverter.
UInt64BitsToDouble
(yBits);
1639
double xHead = BitConverter.
UInt64BitsToDouble
(xBits & 0xFFFF_FFFF_F800_0000);
1640
double yHead = BitConverter.
UInt64BitsToDouble
(yBits & 0xFFFF_FFFF_F800_0000);
2367
static double IBinaryFloatParseAndFormatInfo<double>.BitsToFloat(ulong bits) => BitConverter.
UInt64BitsToDouble
(bits);
2552
double z1 = BitConverter.
UInt64BitsToDouble
(bits);
2560
double reciprocalHead = BitConverter.
UInt64BitsToDouble
(bits);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CharUnicodeInfo.cs (1)
275
return BitConverter.
UInt64BitsToDouble
(temp);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
1027
return BitConverter.
UInt64BitsToDouble
(sign ? double.SignMask : 0); // Positive / Negative zero
1193
return BitConverter.
UInt64BitsToDouble
(signInt | NaNBits | sigInt);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (4)
131
return BitConverter.
UInt64BitsToDouble
(raw & mask);
327
return BitConverter.
UInt64BitsToDouble
(bits);
359
return BitConverter.
UInt64BitsToDouble
(bits);
383
return BitConverter.
UInt64BitsToDouble
((xbits & ~double.SignMask) | (ybits & double.SignMask));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Cbrt.cs (1)
49
double f = BitConverter.
UInt64BitsToDouble
((((ulong)(double.ExponentBias - 1)) << double.BiasedExponentShift) + (msd >> (64 - double.SignificandLength)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Sqrt.cs (1)
317
double f = BitConverter.
UInt64BitsToDouble
((msd >> (64 - double.SignificandLength)) + ((ulong)(double.ExponentBias - 2) << double.BiasedExponentShift));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
478
ulong exponentOffset0 = BitConverter.DoubleToUInt64Bits(double.Max(value, BitConverter.
UInt64BitsToDouble
(MinExp)));
484
value += BitConverter.
UInt64BitsToDouble
(exponentOffset0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (5)
880
get => (NFloat)BitConverter.
UInt64BitsToDouble
(0xFFFF_FFFF_FFFF_FFFF);
906
NativeType result = BitConverter.
UInt64BitsToDouble
(bits);
920
NativeType result = BitConverter.
UInt64BitsToDouble
(bits);
934
NativeType result = BitConverter.
UInt64BitsToDouble
(bits);
948
NativeType result = BitConverter.
UInt64BitsToDouble
(bits);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (4)
261
double lower = BitConverter.
UInt64BitsToDouble
(TwoPow52Bits | ((value._lower << 12) >> 12)) - TwoPow52;
262
double upper = BitConverter.
UInt64BitsToDouble
(TwoPow104Bits | (ulong)(value >> 52)) - TwoPow104;
272
double lower = BitConverter.
UInt64BitsToDouble
(TwoPow76Bits | ((ulong)(value >> 12) >> 12) | (value._lower & 0xFFFFFF)) - TwoPow76;
273
double upper = BitConverter.
UInt64BitsToDouble
(TwoPow128Bits | (value._upper >> 12)) - TwoPow128;
System.Private.Xml (3)
System\Xml\Xsl\XPathConvert.cs (3)
663
return BitConverter.
UInt64BitsToDouble
((ulong)dblHi << 32 | dblLo);
1116
dblT = BitConverter.
UInt64BitsToDouble
((ulong)dblHi << 32 | DblLo(dblT));
1127
dblT = BitConverter.
UInt64BitsToDouble
((ulong)dblHi << 32 | dblLo);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
2179
return BitConverter.
UInt64BitsToDouble
(result);