[Ada] Eliminate early roundoff error for Long_Long_Float on x86
commit35e3a1f670dc5ef033184ef1103f8d4e0fb42d1e
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 8 Dec 2020 22:53:43 +0000 (8 23:53 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 28 Apr 2021 09:38:09 +0000 (28 05:38 -0400)
tree0904778406591716d134528a8f56410b660f3df3
parent9d5f3b7a694ceb774330d45894b38e34bb90f86a
[Ada] Eliminate early roundoff error for Long_Long_Float on x86

gcc/ada/

* libgnat/s-valrea.adb (Fast2Sum): New function.
(Integer_to_Real): Use it in an iterated addition with exact
error handling for the case where an extra digit is needed.
Move local variable now only used in the exponentiation case.
gcc/ada/libgnat/s-valrea.adb