r275792 - in /trunk/gcc/ada: ChangeLog libgnat/...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Tue Sep 17 08:02:00 GMT 2019
Author: pmderodat
Date: Tue Sep 17 08:02:35 2019
New Revision: 275792
URL: https://gcc.gnu.org/viewcvs?rev=275792&root=gcc&view=rev
Log:
[Ada] Minor fixes mostly in comments of runtime arithmetic unit
Multiple comments in functions Double_Divide and Scaled_Divide were
incorrect. Now fixed.
Also change the expression (if Zhi /= 0 then Ylo * Zhi else 0) to the
simpler equivalent (Ylo * Zhi) in Double_Divide.
Also add a comment explaining why the implementation of Algorithm D for
multiple-precision division from the 2nd Edition of The Art of Computer
Programming does not suffer from two bugs discovered on that version.
There is no impact on execution, hence no test.
2019-09-17 Yannick Moy <moy@adacore.com>
gcc/ada/
* libgnat/s-arit64.adb (Double_Divide): Simplify needlessly
complex computation. Fix comments.
(Scaled_Divide): Fix comments. Explain why implementation does
not suffer from bugs in Algorithm D from 2nd Edition of TAOCP.
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/libgnat/s-arit64.adb
More information about the Gcc-cvs
mailing list