r260743 - in /trunk/gcc/ada: ChangeLog libgnat/...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Fri May 25 09:05:00 GMT 2018


Author: pmderodat
Date: Fri May 25 09:05:34 2018
New Revision: 260743

URL: https://gcc.gnu.org/viewcvs?rev=260743&root=gcc&view=rev
Log:
[Ada] Improve performance of conversion from String to Long_Float

Once it is sure that the result will be infinity, stop computation and return
the result. This ensure that the function call duration is bounded. Before that
change on some cases the computation was taking more than a few seconds.

2018-05-25  Nicolas Roche  <roche@adacore.com>

gcc/ada/

	* libgnat/s-valrea.adb (Scan_Real): Abort computation once it is sure
	that the result will be either -infinite or +infinite.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/libgnat/s-valrea.adb



More information about the Gcc-cvs mailing list