llvm-project/flang/lib/Decimal
peter klausler 4876520eef [flang] runtime: For Fw.d formatting, don't oscillate forever
The algorithm for Fw.d output will drive binary to decimal conversion for
an initial fixed number of digits, then adjust that number based on the
result's exposent.  For value close to a power of ten, this adjustment
process wouldn't terminate; e.g., formatting 9.999 as F10.2 would start
with 1e2, boost the digits to 2, get 9.99e1, decrease the digits, and loop.
Solve by refusing to boost the digits a second time.

Differential Revision: https://reviews.llvm.org/D107490
2021-08-04 12:19:23 -07:00
..
CMakeLists.txt [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
big-radix-floating-point.h [flang] Readability improvement in binary->decimal conversion 2020-10-01 15:49:27 -07:00
binary-to-decimal.cpp [flang] runtime: For Fw.d formatting, don't oscillate forever 2021-08-04 12:19:23 -07:00
decimal-to-binary.cpp [flang] Implement reductions in the runtime 2021-04-01 11:23:50 -07:00