[libc-commits] [libc] [libc] Alternative algorithm for decimal FP printf (PR #123643)

Simon Tatham via libc-commits libc-commits at lists.llvm.org
Mon Jan 27 08:30:20 PST 2025


statham-arm wrote:

@michaelrj-google , I think this is ready for another review. It took me a few days to get the revised algorithm re-rounding correctly in all modes and passing all the tests, but I think it's there now, and I agree it's an improvement on the old algorithm, because it now reliably calculates just one power of 10, which is always good enough to get the right output with only a minor postprocessing cost.

https://github.com/llvm/llvm-project/pull/123643


More information about the libc-commits mailing list