mirror of git://gcc.gnu.org/git/gcc.git
re PR libfortran/26253 (fallback scalbn doesn't handle denormals correctly)
PR libfortran/26253 * intrinsics/c99_functions.c (scalbn): Use ldexp if appopriate. From-SVN: r128648
This commit is contained in:
parent
90d3112688
commit
b65d72ab86
|
|
@ -1,3 +1,8 @@
|
||||||
|
2007-09-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||||
|
|
||||||
|
PR libfortran/26253
|
||||||
|
* intrinsics/c99_functions.c (scalbn): Use ldexp if appopriate.
|
||||||
|
|
||||||
2007-09-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
2007-09-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||||
|
|
||||||
PR libfortran/23272
|
PR libfortran/23272
|
||||||
|
|
|
||||||
|
|
@ -341,7 +341,11 @@ log10f(float x)
|
||||||
double
|
double
|
||||||
scalbn(double x, int y)
|
scalbn(double x, int y)
|
||||||
{
|
{
|
||||||
|
#if (FLT_RADIX == 2) && defined(HAVE_LDEXP)
|
||||||
|
return ldexp (x, y);
|
||||||
|
#else
|
||||||
return x * pow(FLT_RADIX, y);
|
return x * pow(FLT_RADIX, y);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue