]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
ftoastr: suggest a better algorithm
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 16:44:48 +0000 (09:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 17:04:38 +0000 (10:04 -0700)
* lib/ftoastr.c: In comment, suggest Ryū instead of Errol.

lib/ftoastr.c

index 250b840365e7b21f92b9c5f31a8f3564918fc526..1cef8bb6c7561965a7a7c57e1d2dd7d255e7e149 100644 (file)
@@ -114,10 +114,8 @@ 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:
 
-     Andrysco M, Jhala R, Lerner S. Printing floating-point numbers:
-     a faster, always correct method. ACM SIGPLAN notices - POPL '16.
-     2016;51(1):555-67 <https://doi.org/10.1145/2914770.2837654>; draft at
-     <https://cseweb.ucsd.edu/~lerner/papers/fp-printing-popl16.pdf>.  */
+     Adams U. Ryū: fast float-to-string conversion.
+     PLDI 2018. 270–282. <https://doi.org/10.1145/3192366.3192369>.  */
 
   PROMOTED_FLOAT promoted_x = x;
   char format[sizeof "%-+ 0*.*Lg"];