21 references to SingleToInt32Bits
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
639
WriteInt32(offset, BitConverter.
SingleToInt32Bits
(value));
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (2)
40
return float.IsNaN(value) || BitConverter.
SingleToInt32Bits
((float)result) == BitConverter.
SingleToInt32Bits
(value);
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteBigEndian.cs (2)
186
int tmp = ReverseEndianness(BitConverter.
SingleToInt32Bits
(value));
476
int tmp = ReverseEndianness(BitConverter.
SingleToInt32Bits
(value));
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteLittleEndian.cs (2)
186
int tmp = ReverseEndianness(BitConverter.
SingleToInt32Bits
(value));
476
int tmp = ReverseEndianness(BitConverter.
SingleToInt32Bits
(value));
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
784
result = BitConverter.
SingleToInt32Bits
(localResult);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (1)
490
public void Write(long position, float value) => Write(position, BitConverter.
SingleToInt32Bits
(value));
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
55
return CompareIntegerSemantic(BitConverter.
SingleToInt32Bits
((float)(object)x!), BitConverter.
SingleToInt32Bits
((float)(object)y!));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (3)
1319
int bits = BitConverter.
SingleToInt32Bits
((float)(object)value);
1381
int bits = BitConverter.
SingleToInt32Bits
((float)(object)value);
1443
int bits = BitConverter.
SingleToInt32Bits
((float)(object)value);
src\libraries\System.Private.CoreLib\src\System\Single.cs (5)
210
return BitConverter.
SingleToInt32Bits
(f) < 0;
1138
public static bool IsPositive(float value) => BitConverter.
SingleToInt32Bits
(value) >= 0;
1821
int bits = BitConverter.
SingleToInt32Bits
(ax);
1962
int bits = BitConverter.
SingleToInt32Bits
(ax);
2139
int bits = BitConverter.
SingleToInt32Bits
(ax);
src\System\Reflection\Emit\RuntimeILGenerator.cs (1)
740
BinaryPrimitives.WriteInt32LittleEndian(m_ILStream.AsSpan(m_length), BitConverter.
SingleToInt32Bits
(arg));
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
842
arg.PrimitiveValue = new PrimitiveValue() { Byte4 = BitConverter.
SingleToInt32Bits
(parser.GetR4()) };