[Ada] Correctly round Value attribute for floating point in more cases

2022-09-06 Thread Marc Poulhiès via Gcc-patches
This provides correct rounding in the IEEE 754 sense for the Value attribute of floating-point types in more cases, by switching from tables of powers of 10 to tables of powers of 5 for precomputed values, thus making it possible to use a single divide for denormals and normalized numbers just abov

[Ada] Correctly round Value attribute for floating point in more cases

2022-09-06 Thread Marc Poulhiès via Gcc-patches
This provides correct rounding in the IEEE 754 sense for the Value attribute of floating-point types in more cases, by bumping the number of significant bits used in the initial integer mantissa obtained from parsing. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/s