3 implementations of IBinaryFloatParseAndFormatInfo
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
30IBinaryFloatParseAndFormatInfo<double>
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
28IBinaryFloatParseAndFormatInfo<Half>
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
30IBinaryFloatParseAndFormatInfo<float>
92 references to IBinaryFloatParseAndFormatInfo
System.Private.CoreLib (92)
src\libraries\System.Private.CoreLib\src\System\Double.cs (25)
2291static int IBinaryFloatParseAndFormatInfo<double>.NumberBufferLength => Number.DoubleNumberBufferLength; 2293static ulong IBinaryFloatParseAndFormatInfo<double>.ZeroBits => 0; 2294static ulong IBinaryFloatParseAndFormatInfo<double>.InfinityBits => 0x7FF00000_00000000; 2296static ulong IBinaryFloatParseAndFormatInfo<double>.NormalMantissaMask => (1UL << SignificandLength) - 1; 2297static ulong IBinaryFloatParseAndFormatInfo<double>.DenormalMantissaMask => TrailingSignificandMask; 2299static int IBinaryFloatParseAndFormatInfo<double>.MinBinaryExponent => 1 - MaxExponent; 2300static int IBinaryFloatParseAndFormatInfo<double>.MaxBinaryExponent => MaxExponent; 2302static int IBinaryFloatParseAndFormatInfo<double>.MinDecimalExponent => -324; 2303static int IBinaryFloatParseAndFormatInfo<double>.MaxDecimalExponent => 309; 2305static int IBinaryFloatParseAndFormatInfo<double>.ExponentBias => ExponentBias; 2306static ushort IBinaryFloatParseAndFormatInfo<double>.ExponentBits => 11; 2308static int IBinaryFloatParseAndFormatInfo<double>.OverflowDecimalExponent => (MaxExponent + (2 * SignificandLength)) / 3; 2309static int IBinaryFloatParseAndFormatInfo<double>.InfinityExponent => 0x7FF; 2311static ushort IBinaryFloatParseAndFormatInfo<double>.NormalMantissaBits => SignificandLength; 2312static ushort IBinaryFloatParseAndFormatInfo<double>.DenormalMantissaBits => TrailingSignificandLength; 2314static int IBinaryFloatParseAndFormatInfo<double>.MinFastFloatDecimalExponent => -342; 2315static int IBinaryFloatParseAndFormatInfo<double>.MaxFastFloatDecimalExponent => 308; 2317static int IBinaryFloatParseAndFormatInfo<double>.MinExponentRoundToEven => -4; 2318static int IBinaryFloatParseAndFormatInfo<double>.MaxExponentRoundToEven => 23; 2320static int IBinaryFloatParseAndFormatInfo<double>.MaxExponentFastPath => 22; 2321static ulong IBinaryFloatParseAndFormatInfo<double>.MaxMantissaFastPath => 2UL << TrailingSignificandLength; 2323static double IBinaryFloatParseAndFormatInfo<double>.BitsToFloat(ulong bits) => BitConverter.UInt64BitsToDouble(bits); 2325static ulong IBinaryFloatParseAndFormatInfo<double>.FloatToBits(double value) => BitConverter.DoubleToUInt64Bits(value); 2327static int IBinaryFloatParseAndFormatInfo<double>.MaxRoundTripDigits => 17; 2329static int IBinaryFloatParseAndFormatInfo<double>.MaxPrecisionCustomFormat => 15;
src\libraries\System.Private.CoreLib\src\System\Half.cs (25)
2339static int IBinaryFloatParseAndFormatInfo<Half>.NumberBufferLength => Number.HalfNumberBufferLength; 2341static ulong IBinaryFloatParseAndFormatInfo<Half>.ZeroBits => 0; 2342static ulong IBinaryFloatParseAndFormatInfo<Half>.InfinityBits => 0x7C00; 2344static ulong IBinaryFloatParseAndFormatInfo<Half>.NormalMantissaMask => (1UL << SignificandLength) - 1; 2345static ulong IBinaryFloatParseAndFormatInfo<Half>.DenormalMantissaMask => TrailingSignificandMask; 2347static int IBinaryFloatParseAndFormatInfo<Half>.MinBinaryExponent => 1 - MaxExponent; 2348static int IBinaryFloatParseAndFormatInfo<Half>.MaxBinaryExponent => MaxExponent; 2350static int IBinaryFloatParseAndFormatInfo<Half>.MinDecimalExponent => -8; 2351static int IBinaryFloatParseAndFormatInfo<Half>.MaxDecimalExponent => 5; 2353static int IBinaryFloatParseAndFormatInfo<Half>.ExponentBias => ExponentBias; 2354static ushort IBinaryFloatParseAndFormatInfo<Half>.ExponentBits => 5; 2356static int IBinaryFloatParseAndFormatInfo<Half>.OverflowDecimalExponent => (MaxExponent + (2 * SignificandLength)) / 3; 2357static int IBinaryFloatParseAndFormatInfo<Half>.InfinityExponent => 0x1F; 2359static ushort IBinaryFloatParseAndFormatInfo<Half>.NormalMantissaBits => SignificandLength; 2360static ushort IBinaryFloatParseAndFormatInfo<Half>.DenormalMantissaBits => TrailingSignificandLength; 2362static int IBinaryFloatParseAndFormatInfo<Half>.MinFastFloatDecimalExponent => -8; 2363static int IBinaryFloatParseAndFormatInfo<Half>.MaxFastFloatDecimalExponent => 4; 2365static int IBinaryFloatParseAndFormatInfo<Half>.MinExponentRoundToEven => -21; 2366static int IBinaryFloatParseAndFormatInfo<Half>.MaxExponentRoundToEven => 5; 2368static int IBinaryFloatParseAndFormatInfo<Half>.MaxExponentFastPath => 4; 2369static ulong IBinaryFloatParseAndFormatInfo<Half>.MaxMantissaFastPath => 2UL << TrailingSignificandLength; 2371static Half IBinaryFloatParseAndFormatInfo<Half>.BitsToFloat(ulong bits) => BitConverter.UInt16BitsToHalf((ushort)(bits)); 2373static ulong IBinaryFloatParseAndFormatInfo<Half>.FloatToBits(Half value) => BitConverter.HalfToUInt16Bits(value); 2375static int IBinaryFloatParseAndFormatInfo<Half>.MaxRoundTripDigits => 5; 2377static int IBinaryFloatParseAndFormatInfo<Half>.MaxPrecisionCustomFormat => 5;
src\libraries\System.Private.CoreLib\src\System\Number.DiyFp.cs (2)
33where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber> 41where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber>
src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (1)
14where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber>
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (4)
495where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber> 504where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber> 527where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber> 2537where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber>
src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (1)
325where TNumber : unmanaged, IBinaryFloatParseAndFormatInfo<TNumber>
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (5)
720where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat> 839where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat> 973where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat> 1055where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat> 1275where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat>
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (4)
51where TSelf : unmanaged, IBinaryFloatParseAndFormatInfo<TSelf> 858where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat> 950where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat> 1083where TFloat : unmanaged, IBinaryFloatParseAndFormatInfo<TFloat>
src\libraries\System.Private.CoreLib\src\System\Single.cs (25)
2207static int IBinaryFloatParseAndFormatInfo<float>.NumberBufferLength => Number.SingleNumberBufferLength; 2209static ulong IBinaryFloatParseAndFormatInfo<float>.ZeroBits => 0; 2210static ulong IBinaryFloatParseAndFormatInfo<float>.InfinityBits => 0x7F800000; 2212static ulong IBinaryFloatParseAndFormatInfo<float>.NormalMantissaMask => (1UL << SignificandLength) - 1; 2213static ulong IBinaryFloatParseAndFormatInfo<float>.DenormalMantissaMask => TrailingSignificandMask; 2215static int IBinaryFloatParseAndFormatInfo<float>.MinBinaryExponent => 1 - MaxExponent; 2216static int IBinaryFloatParseAndFormatInfo<float>.MaxBinaryExponent => MaxExponent; 2218static int IBinaryFloatParseAndFormatInfo<float>.MinDecimalExponent => -45; 2219static int IBinaryFloatParseAndFormatInfo<float>.MaxDecimalExponent => 39; 2221static int IBinaryFloatParseAndFormatInfo<float>.ExponentBias => ExponentBias; 2222static ushort IBinaryFloatParseAndFormatInfo<float>.ExponentBits => 8; 2224static int IBinaryFloatParseAndFormatInfo<float>.OverflowDecimalExponent => (MaxExponent + (2 * SignificandLength)) / 3; 2225static int IBinaryFloatParseAndFormatInfo<float>.InfinityExponent => 0xFF; 2227static ushort IBinaryFloatParseAndFormatInfo<float>.NormalMantissaBits => SignificandLength; 2228static ushort IBinaryFloatParseAndFormatInfo<float>.DenormalMantissaBits => TrailingSignificandLength; 2230static int IBinaryFloatParseAndFormatInfo<float>.MinFastFloatDecimalExponent => -65; 2231static int IBinaryFloatParseAndFormatInfo<float>.MaxFastFloatDecimalExponent => 38; 2233static int IBinaryFloatParseAndFormatInfo<float>.MinExponentRoundToEven => -17; 2234static int IBinaryFloatParseAndFormatInfo<float>.MaxExponentRoundToEven => 10; 2236static int IBinaryFloatParseAndFormatInfo<float>.MaxExponentFastPath => 10; 2237static ulong IBinaryFloatParseAndFormatInfo<float>.MaxMantissaFastPath => 2UL << TrailingSignificandLength; 2239static float IBinaryFloatParseAndFormatInfo<float>.BitsToFloat(ulong bits) => BitConverter.UInt32BitsToSingle((uint)(bits)); 2241static ulong IBinaryFloatParseAndFormatInfo<float>.FloatToBits(float value) => BitConverter.SingleToUInt32Bits(value); 2243static int IBinaryFloatParseAndFormatInfo<float>.MaxRoundTripDigits => 9; 2245static int IBinaryFloatParseAndFormatInfo<float>.MaxPrecisionCustomFormat => 7;