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
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
||||
PR libfortran/23272
|
||||
|
|
|
@ -341,7 +341,11 @@ log10f(float x)
|
|||
double
|
||||
scalbn(double x, int y)
|
||||
{
|
||||
#if (FLT_RADIX == 2) && defined(HAVE_LDEXP)
|
||||
return ldexp (x, y);
|
||||
#else
|
||||
return x * pow(FLT_RADIX, y);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue