52 references to DoubleToInt64Bits
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
ILCompiler.MetadataTransform (2)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (2)
1009return BitConverter.DoubleToInt64Bits(x) == BitConverter.DoubleToInt64Bits(y);
Microsoft.CodeAnalysis (7)
CodeGen\ILBuilderEmit.cs (1)
834long int64 = BitConverter.DoubleToInt64Bits(doubleValue);
Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
ConstantValue.cs (3)
285if (BitConverter.DoubleToInt64Bits(value) == 0) 299if (BitConverter.DoubleToInt64Bits(value) == 0) 313if (BitConverter.DoubleToInt64Bits(value) == 0)
RealParser.cs (2)
265public override ulong Zero => (ulong)BitConverter.DoubleToInt64Bits(0.0d); 266public override ulong Infinity => (ulong)BitConverter.DoubleToInt64Bits(double.PositiveInfinity);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
978long l2 = BitConverter.DoubleToInt64Bits(d);
Utilities\ValueSetFactory.DoubleTC.cs (1)
56return (ulong)BitConverter.DoubleToInt64Bits(d);
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\UseSpanClearInsteadOfFill.cs (2)
111return BitConverter.DoubleToInt64Bits(f) == 0; 114return BitConverter.DoubleToInt64Bits(d) == 0;
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (2)
53_longValue = BitConverter.DoubleToInt64Bits(d); 57_longValue = BitConverter.DoubleToInt64Bits(f);
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (2)
169longLiterals.Add(BitConverter.DoubleToInt64Bits(d)); 172longLiterals.Add(BitConverter.DoubleToInt64Bits(f));
src\roslyn\src\Compilers\Core\Portable\Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\Collections\Boxes.cs (1)
89return BitConverter.DoubleToInt64Bits(d) == 0 ? BoxedDoubleZero : d;
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
486WriteInt64(offset, BitConverter.DoubleToInt64Bits(value));
System.Data.OleDb (1)
System\Data\ProviderBase\DbBuffer.cs (1)
459WriteInt64(offset, BitConverter.DoubleToInt64Bits(value));
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\Base2ExponentialHistogramAggregator.cs (1)
236var bits = BitConverter.DoubleToInt64Bits(value);
System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs (1)
181ulong bits = (ulong)BitConverter.DoubleToInt64Bits(measurement);
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.Simple.cs (2)
137return double.IsNaN(value) || BitConverter.DoubleToInt64Bits(result) == BitConverter.DoubleToInt64Bits(value);
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteBigEndian.cs (2)
26long tmp = ReverseEndianness(BitConverter.DoubleToInt64Bits(value)); 353long tmp = ReverseEndianness(BitConverter.DoubleToInt64Bits(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteLittleEndian.cs (2)
26long tmp = ReverseEndianness(BitConverter.DoubleToInt64Bits(value)); 353long tmp = ReverseEndianness(BitConverter.DoubleToInt64Bits(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (5)
212return BitConverter.DoubleToInt64Bits(d) < 0; 1137public static bool IsPositive(double value) => BitConverter.DoubleToInt64Bits(value) >= 0; 1958long bits = BitConverter.DoubleToInt64Bits(ax); 2099long bits = BitConverter.DoubleToInt64Bits(ax); 2276long bits = BitConverter.DoubleToInt64Bits(ax);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (1)
492public void Write(long position, double value) => Write(position, BitConverter.DoubleToInt64Bits(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
60return CompareIntegerSemantic(BitConverter.DoubleToInt64Bits((double)(object)x!), BitConverter.DoubleToInt64Bits((double)(object)y!));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (3)
1493long bits = BitConverter.DoubleToInt64Bits((double)(object)value); 1555long bits = BitConverter.DoubleToInt64Bits((double)(object)value); 1617long bits = BitConverter.DoubleToInt64Bits((double)(object)value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Volatile.cs (1)
56Write(ref Unsafe.As<double, long>(ref location), BitConverter.DoubleToInt64Bits(value));
System.Private.Xml (6)
System\Xml\XmlConvert.cs (2)
1382if (value == 0 && BitConverter.DoubleToInt64Bits(value) == BitConverter.DoubleToInt64Bits(-0e0))
System\Xml\Xsl\XPathConvert.cs (4)
58bits = BitConverter.DoubleToInt64Bits(y) & 1L << 63; 67bits = BitConverter.DoubleToInt64Bits(x); 2789dbl = BitConverter.Int64BitsToDouble(BitConverter.DoubleToInt64Bits(dbl) - 1); 2814dbl = BitConverter.Int64BitsToDouble(BitConverter.DoubleToInt64Bits(dbl) + 1);