23 references to SingleToInt32Bits
ILCompiler.MetadataTransform (2)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (2)
1004return BitConverter.SingleToInt32Bits(x) == BitConverter.SingleToInt32Bits(y);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
639WriteInt32(offset, BitConverter.SingleToInt32Bits(value));
System.Data.OleDb (1)
System\Data\ProviderBase\DbBuffer.cs (1)
612WriteInt32(offset, BitConverter.SingleToInt32Bits(value));
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (2)
40return float.IsNaN(value) || BitConverter.SingleToInt32Bits((float)result) == BitConverter.SingleToInt32Bits(value);
System.Private.CoreLib (17)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteBigEndian.cs (2)
210int tmp = ReverseEndianness(BitConverter.SingleToInt32Bits(value)); 521int tmp = ReverseEndianness(BitConverter.SingleToInt32Bits(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteLittleEndian.cs (2)
210int tmp = ReverseEndianness(BitConverter.SingleToInt32Bits(value)); 521int tmp = ReverseEndianness(BitConverter.SingleToInt32Bits(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (1)
490public void Write(long position, float value) => Write(position, BitConverter.SingleToInt32Bits(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
56return CompareIntegerSemantic(BitConverter.SingleToInt32Bits((float)(object)x!), BitConverter.SingleToInt32Bits((float)(object)y!));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (3)
1523int bits = BitConverter.SingleToInt32Bits((float)(object)value); 1585int bits = BitConverter.SingleToInt32Bits((float)(object)value); 1647int bits = BitConverter.SingleToInt32Bits((float)(object)value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (5)
212return BitConverter.SingleToInt32Bits(f) < 0; 1154public static bool IsPositive(float value) => BitConverter.SingleToInt32Bits(value) >= 0; 1874int bits = BitConverter.SingleToInt32Bits(ax); 2009int bits = BitConverter.SingleToInt32Bits(ax); 2186int bits = BitConverter.SingleToInt32Bits(ax);
System\Reflection\RuntimeCustomAttributeData.NativeAot.cs (2)
225argument.PrimitiveValue = new PrimitiveValue() { Byte4 = BitConverter.SingleToInt32Bits(value.ToConstantSingleValueHandle(_reader).GetConstantSingleValue(_reader).Value) }; 413result[index++] = CreatePrimitiveArgument(elementType, new PrimitiveValue() { Byte4 = BitConverter.SingleToInt32Bits(value) });