36 references to SingleToUInt32Bits
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.BitDecrement.cs (3)
57Vector128<uint> specialValue = Vector128.Create(BitConverter.SingleToUInt32Bits(-float.Epsilon)) & isPositiveZero; 108Vector256<uint> specialValue = Vector256.Create(BitConverter.SingleToUInt32Bits(-float.Epsilon)) & isPositiveZero; 159Vector512<uint> specialValue = Vector512.Create(BitConverter.SingleToUInt32Bits(-float.Epsilon)) & isPositiveZero;
System.Private.CoreLib (31)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (4)
760uint bitValue = BitConverter.SingleToUInt32Bits(value); 770uint exponentOffset0 = BitConverter.SingleToUInt32Bits(float.Max(value, BitConverter.UInt32BitsToSingle(MinExp))); 777bitValue = BitConverter.SingleToUInt32Bits(value); 1108uint absoluteValue = BitConverter.SingleToUInt32Bits(BitConverter.UInt32BitsToSingle(bitValueInProcess) - BitConverter.UInt32BitsToSingle(maskedExponentLowerBound));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
139uint raw = BitConverter.SingleToUInt32Bits(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (4)
52uint bits = BitConverter.SingleToUInt32Bits(x); 84uint bits = BitConverter.SingleToUInt32Bits(x); 130uint xbits = BitConverter.SingleToUInt32Bits(x); 131uint ybits = BitConverter.SingleToUInt32Bits(y);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (3)
548uint roundedValueBits = BitConverter.SingleToUInt32Bits(roundedValue); 588uint bits = BitConverter.SingleToUInt32Bits(value); 613uint roundedValueBits = BitConverter.SingleToUInt32Bits(roundedValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
773uint bits = BitConverter.SingleToUInt32Bits((float)(object)value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (18)
125uint bits = BitConverter.SingleToUInt32Bits(m_value); 150uint bits = BitConverter.SingleToUInt32Bits(m_value); 173uint bits = BitConverter.SingleToUInt32Bits(f); 182uint bits = BitConverter.SingleToUInt32Bits(Abs(f)); 203uint bits = BitConverter.SingleToUInt32Bits(f); 229uint bits = BitConverter.SingleToUInt32Bits(Abs(f)); 247uint bits = BitConverter.SingleToUInt32Bits(Abs(f)); 341uint bits = BitConverter.SingleToUInt32Bits(m_value); 542uint bits = BitConverter.SingleToUInt32Bits(value); 579uint bits = BitConverter.SingleToUInt32Bits(left) & BitConverter.SingleToUInt32Bits(right); 586uint bits = BitConverter.SingleToUInt32Bits(left) | BitConverter.SingleToUInt32Bits(right); 593uint bits = BitConverter.SingleToUInt32Bits(left) ^ BitConverter.SingleToUInt32Bits(right); 600uint bits = ~BitConverter.SingleToUInt32Bits(value); 1124uint bits = BitConverter.SingleToUInt32Bits(Abs(value)); 2285static ulong IBinaryFloatParseAndFormatInfo<float>.FloatToBits(float value) => BitConverter.SingleToUInt32Bits(value);
System.Private.DataContractSerialization (1)
System\Xml\XmlConverter.cs (1)
713return BitConverter.SingleToUInt32Bits(value) == 0x8000_0000U;
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\BlobUtilities.cs (1)
23WriteUInt32(buffer, start, BitConverter.SingleToUInt32Bits(value));