User Tools

Site Tools


pdclib:drawingboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pdclib:drawingboard [2021/07/12 15:51] – created - external edit 127.0.0.1pdclib:drawingboard [2025/08/10 18:33] (current) – [Floating Point Support for printf] solar
Line 29: Line 29:
 ===== Floating Point Support for printf ===== ===== Floating Point Support for printf =====
  
-A request from downstream was to add FP support to my ''printf()'' implementation (which currently **breaks** for %f/%g et al. because it doesn't draw the accompanying value from the stack -- not nice!).+A request from downstream was to add FP support to my ''printf()'' implementation.
  
-I got a good introduction to the Dragon4 binary-to-string conversion algorithm as well as the paper for the Grisu3 small integer optimization. Big Integer support is required for there, and already implemented, so there might be another checkmark added here soon (tm).+I got a good introduction to the Dragon4 binary-to-string conversion algorithm. Big Integer support is required for there, and already implemented, so there might be another checkmark added here soon (tm).
  
 Links: Links:
  
   * [[https://lists.nongnu.org/archive/html/gcl-devel/2012-10/pdfkieTlklRzN.pdf|How to Print Floating-Point Numbers Accurately]] (Steele & White, //Dragon4//)   * [[https://lists.nongnu.org/archive/html/gcl-devel/2012-10/pdfkieTlklRzN.pdf|How to Print Floating-Point Numbers Accurately]] (Steele & White, //Dragon4//)
-  * [[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.72.4656|Printing Floating-Point Numbers Quickly and Accurately]] (Burger et al.+  * [[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.72.4656|Printing Floating-Point Numbers Quickly and Accurately]] (Burger & Dybvig
   * [[https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf|Printing Floating-Point Numbers Quickly and Accurately with Integers]] (Florian Loitsch, //Grisu3//)   * [[https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf|Printing Floating-Point Numbers Quickly and Accurately with Integers]] (Florian Loitsch, //Grisu3//)
 +  * [[https://www.ryanjuckett.com/printing-floating-point-numbers/|Ryan Juckett: Printing Floating Point Numbers]]
  
 +Trying to summarize my understanding of the issue: [[Printing Floating Point Numbers]]
 ===== Annex K ===== ===== Annex K =====
  
pdclib/drawingboard.txt · Last modified: by solar

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki