]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
ftoastr: suggest a better algorithm
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jul 2025 05:09:00 +0000 (22:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jul 2025 05:09:00 +0000 (22:09 -0700)
* lib/ftoastr.c: Also mention Dragonbox.

lib/ftoastr.c

index 1cef8bb6c7561965a7a7c57e1d2dd7d255e7e149..2438ffe837f0d37d9a394bbb00070ae716dcf31b 100644 (file)
@@ -114,6 +114,10 @@ FTOASTR (char *buf, size_t bufsize, int flags, int width, FLOAT x)
   /* The following method is simple but slow.
      For ideas about speeding things up, please see:
 
+     Jeon J. Dragonbox: a new floating-point binary-to-decimal
+     conversion algorithm. 2024. <https://github.com/jk-jeon/dragonbox/>.
+     Used in {fmt} <https://github.com/fmtlib/fmt>.
+
      Adams U. Ryū: fast float-to-string conversion.
      PLDI 2018. 270–282. <https://doi.org/10.1145/3192366.3192369>.  */