re PR libfortran/37754 (READ I/O Performance regression from 4.3 to 4.4/4.5)
2009-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/37754 * io/write_float.def: Simplify format calculation. From-SVN: r147725
This commit is contained in:
parent
5cfd5d9b8f
commit
3a546d4d9b
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libfortran/37754
|
||||
* io/write_float.def: Simplify format calculation.
|
||||
|
||||
2009-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||
|
||||
PR fortran/22423
|
||||
|
|
|
@ -603,7 +603,7 @@ output_float_FMT_G_ ## x (st_parameter_dt *dtp, const fnode *f, \
|
|||
int d = f->u.real.d;\
|
||||
int w = f->u.real.w;\
|
||||
fnode *newf;\
|
||||
GFC_REAL_ ## x exp_d;\
|
||||
GFC_REAL_ ## x rexp_d;\
|
||||
int low, high, mid;\
|
||||
int ubound, lbound;\
|
||||
char *p;\
|
||||
|
@ -612,8 +612,8 @@ output_float_FMT_G_ ## x (st_parameter_dt *dtp, const fnode *f, \
|
|||
save_scale_factor = dtp->u.p.scale_factor;\
|
||||
newf = (fnode *) get_mem (sizeof (fnode));\
|
||||
\
|
||||
exp_d = calculate_exp_ ## x (d);\
|
||||
if ((m > 0.0 && m < 0.1 - 0.05 / exp_d) || (m >= exp_d - 0.5 ) ||\
|
||||
rexp_d = calculate_exp_ ## x (-d);\
|
||||
if ((m > 0.0 && m < 0.1 - 0.05 * rexp_d) || (rexp_d * (m + 0.5) >= 1.0) ||\
|
||||
((m == 0.0) && !(compile_options.allow_std & GFC_STD_F2003)))\
|
||||
{ \
|
||||
newf->format = FMT_E;\
|
||||
|
@ -635,8 +635,7 @@ output_float_FMT_G_ ## x (st_parameter_dt *dtp, const fnode *f, \
|
|||
GFC_REAL_ ## x temp;\
|
||||
mid = (low + high) / 2;\
|
||||
\
|
||||
temp = (calculate_exp_ ## x (mid) - \
|
||||
5 * calculate_exp_ ## x (mid - d - 1)) / 10;\
|
||||
temp = (calculate_exp_ ## x (mid - 1) * (1 - 0.5 * rexp_d));\
|
||||
\
|
||||
if (m < temp)\
|
||||
{ \
|
||||
|
|
Loading…
Add table
Reference in a new issue