aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2020-11-28 14:05:53 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2020-12-16 08:01:02 -0500
commit1053ff8a3a8bde5498476e544b40fc9cdc5ee888 (patch)
tree77cde072d1654d3cde8d34fe3ed5b90d10cf6c70 /gcc
parent61c91059b966798928c805746eb64b11fbeab373 (diff)
downloadgcc-1053ff8a3a8bde5498476e544b40fc9cdc5ee888.zip
gcc-1053ff8a3a8bde5498476e544b40fc9cdc5ee888.tar.gz
gcc-1053ff8a3a8bde5498476e544b40fc9cdc5ee888.tar.bz2
[Ada] Fix glitch in comment of System.Powten_Table
gcc/ada/ * libgnat/s-powtab.ads (Maxpow): Use explicit formula in comment.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/libgnat/s-powtab.ads6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/libgnat/s-powtab.ads b/gcc/ada/libgnat/s-powtab.ads
index ef8d74a..79982b9 100644
--- a/gcc/ada/libgnat/s-powtab.ads
+++ b/gcc/ada/libgnat/s-powtab.ads
@@ -36,9 +36,9 @@ package System.Powten_Table is
Maxpow : constant := 22;
-- The number of entries in this table is chosen to include powers of ten
- -- that are exactly representable with long_long_float. Assuming that on
- -- all targets we have 53 bits of mantissa for the type, the upper bound is
- -- given by 53/(log 5). If the scaling factor for a string is greater than
+ -- that are exactly representable with Long_Long_Float. Assuming that on
+ -- all targets we have 53 bits of mantissa for the type, the upper bound
+ -- is given by 53 * log 2 / log 5. If the scaling factor is greater than
-- Maxpow, it can be obtained by several multiplications, which is less
-- efficient than with a bigger table, but avoids anomalies at end points.