diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2003-07-09 17:52:31 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2003-07-09 17:52:31 +0000 |
commit | 03d65dd99ba593d2dab1a8151fa7766b650755ac (patch) | |
tree | a5694d92c663d4d6ab36f0334bcea7ba0032fbf9 /newlib/libm/common/s_nan.c | |
parent | 4d782b426a09120642906e12e21bf669b7bb77db (diff) | |
download | cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.tar.gz cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.tar.bz2 cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.zip |
* libc/include/math.h (nan, nanf): Update prototype to C99.
* libm/common/s_nan.c (nan): Likewise.
* libm/common/s_nanf.c (nanf, nan): Likewise.
* libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
Diffstat (limited to 'newlib/libm/common/s_nan.c')
-rw-r--r-- | newlib/libm/common/s_nan.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/newlib/libm/common/s_nan.c b/newlib/libm/common/s_nan.c index f06242647..a7d4dadf8 100644 --- a/newlib/libm/common/s_nan.c +++ b/newlib/libm/common/s_nan.c @@ -14,8 +14,8 @@ INDEX ANSI_SYNOPSIS #include <math.h> - double nan(void); - float nanf(void); + double nan(const char *); + float nanf(const char *); TRAD_SYNOPSIS #include <math.h> @@ -25,7 +25,8 @@ TRAD_SYNOPSIS DESCRIPTION <<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in - double and single precision arithmetic respectivly. + double and single precision arithmetic respectivly. The + argument is currently disregarded. QUICKREF nan - pure @@ -36,7 +37,7 @@ QUICKREF #ifndef _DOUBLE_IS_32BITS - double nan() + double nan(const char *unused) { double x; |