mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-27 17:34:19 +08:00
re PR libfortran/19302 (intrinsic_nearest.f90 fails)
PR libfortran/19302 * intrinsics/c99_functions.c (nextafterf): Special-case infinite numbers. From-SVN: r95353
This commit is contained in:
parent
10e7039248
commit
7442146939
@ -1,3 +1,9 @@
|
||||
2005-02-21 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||
|
||||
PR libfortran/19302
|
||||
* intrinsics/c99_functions.c (nextafterf): Special-case infinite
|
||||
numbers.
|
||||
|
||||
2005-02-21 Steven G. Kargl <kargls@comcast.net>
|
||||
|
||||
* io/write.c (output_float): Typo in error meesage.
|
||||
|
@ -218,6 +218,8 @@ nextafterf(float x, float y)
|
||||
return x + y;
|
||||
if (x == y)
|
||||
return x;
|
||||
if (!isfinite (x))
|
||||
return x > 0 ? __FLT_MAX__ : - __FLT_MAX__;
|
||||
|
||||
/* absx = fabsf (x); */
|
||||
absx = (x < 0.0) ? -x : x;
|
||||
|
Loading…
Reference in New Issue
Block a user