[patch,libgfortran] Fix binary128 ERFC_SCALED
FX
fxcoudert@gmail.com
Wed Nov 20 20:13:00 GMT 2013
> There is a missed optimization in
>
> + if (x < 12)
> + {
> + /* Compute directly as ERFC_SCALED(x) = ERFC(x) * EXP(X**2).
> + This is not perfect, but much better than netlib. */
> + return erfcq(x) * expq(x*x);
> + }
>
> If x is less than approximately -8192, then erfc(x)*exp(x*x)
> overflows.
Hum, I get roughly -106 where you have -8192, so I’ll not commit immediately with the value I have, and let you check it first.
OK to commit?
FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erfc_scaled.diff
Type: application/octet-stream
Size: 3274 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20131120/c3617822/attachment.obj>
More information about the Fortran
mailing list