[Ada] Optimize magnitude of integer operations for fixed point
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 31 Oct 2020 11:41:18 +0000 (12:41 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 27 Nov 2020 09:15:38 +0000 (04:15 -0500)
commit73e07f1cd9b0f715614ec27f409002ea462c9668
treeba62153078e9b8f243ece510c6b8f58fb15554c9
parent5e9f814d754be790aec5b69a95699a8af2654058
[Ada] Optimize magnitude of integer operations for fixed point

gcc/ada/

* exp_fixd.adb (Build_Double_Divide): Use the RM size of types and
a more precise estimate for the size of the denominator.
(Build_Double_Divide_Code): Likewise.
(Build_Multiply): Use a more precise estimate for the size of the
result.
(Build_Scaled_Divide):  Use the RM size of types and a more precise
estimate for the size of the numerator.
(Build_Scaled_Divide_Code): Likewise.
gcc/ada/exp_fixd.adb