summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/Number.DiyFp.cs
AgeCommit message (Collapse)AuthorFilesLines
2019-05-09Turn on nullability for all of Corelib (#24497)Stephen Toub1-1/+0
* Enable nullable at the project level * Remove `#nullable enable` from individual files Removes `#nullable enable` from almost all .cs files in System.Private.CoreLib. I left it only in the ~30 files (out of ~1480 that had it) that are mirrored to corefx, that are built into projects by corefx that don't yet set NullableContextOptions at the project level, and that use nullable annotations; otherwise, they'd break the corefx build.
2019-03-27nullable: number (#23454)Krzysztof Wicher1-0/+1
2019-02-26Make BitOperations public (CoreCLR) (#22864)Grant1-1/+2
* Make BitOps public * Update name to BitOperations * Change namespace to System.Numerics * Fix file name * Alphabetical
2019-02-13Perf: Consolidate implementation of LeadingZeroCount (#22497)Grant1-1/+1
* Perf: BitOps.LeadingZeroCount * CR fix * CR fixes * Optimization * Revert * Confirmed fix * Simplify * Return int * Fixes * Simplify * CR fixes * CR fixes * Fix unit failure on Linux-musl x64 Debug * CR fixes * CR fixes * Cleanup
2019-02-01Update the double/float formatters to return the shortest roundtrippable ↵Tanner Gooding1-87/+114
string. (#22040) * Updating Number.Formatting to always compute a round-trippable number by default. * Adding a third-party notice entry for the Grisu3 reference implementation * Fixing up the Grisu3 algorithm to better match the reference implementation (including comments, etc) * Porting the Grisu3 implementation that generates the shortest roundtrippable sequence. * Updating the Dragon4 algorithm to support printing the shortest roundtrippable string. * Fixing the double/float formatters to ignore precision specifiers for 'R' * Fixing the double/float formatters to handle +0.0 and -0.0 * Fix the casing of `point` in THIRD-PARTY-NOTICES Co-Authored-By: tannergooding <tagoo@outlook.com> * Fixing the double/float formatting code to consider a precision specifier of 0 to be the same as default. * Fixing the double/float formatter so that nMaxDigits is set appropriately. * Changing the double/float formatting logic to account for the format when determining the correct precision to request. * Updating the double/float formatter to take the format specifier into account when determining the number of digits to request. * Fixing the double/float formatting code to continue handling zero correctly. * Disabling some outdated CoreFX tests. * Responding to various feedback from the PR
2018-09-20Porting bcltype/diyfp.cpp to managed code as shared/System/Number.DiyFp.csTanner Gooding1-0/+129