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