diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-11-01 19:47:32 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-11-01 19:47:32 +0000 |
commit | a6a6f9feceadef016ed84d6f23b81733b47985f0 (patch) | |
tree | 656fb5cde929cf3e41211ae6df80372b903ea46d /newlib | |
parent | 44506780d9bec36f13f3ee79958d1fc6d446d71f (diff) | |
download | newlib-a6a6f9feceadef016ed84d6f23b81733b47985f0.zip newlib-a6a6f9feceadef016ed84d6f23b81733b47985f0.tar.gz newlib-a6a6f9feceadef016ed84d6f23b81733b47985f0.tar.bz2 |
2001-11-01 Arati Dikey <aratidikey@hotmail.com>
* libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
[_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
* libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
[_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 7 | ||||
-rw-r--r-- | newlib/libm/mathfp/sf_isinf.c | 17 | ||||
-rw-r--r-- | newlib/libm/mathfp/sf_isnan.c | 17 |
3 files changed, 39 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4ecd47a..4cb8a19 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2001-11-01 Arati Dikey <aratidikey@hotmail.com> + + * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro. + [_DOUBLE_IS_32BITS](isinf): New function that calls isinff. + * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro. + [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf. + 2001-10-24 Christopher Faylor <cgf@redhat.com> * libc/stdio/fseek.c: Reset pointer to buffer base diff --git a/newlib/libm/mathfp/sf_isinf.c b/newlib/libm/mathfp/sf_isinf.c index 5d53760..84ab3f7 100644 --- a/newlib/libm/mathfp/sf_isinf.c +++ b/newlib/libm/mathfp/sf_isinf.c @@ -18,7 +18,9 @@ #include "fdlibm.h" #include "zmath.h" -int isinff (float x) +int +_DEFUN (isinff, (float), + float x) { __uint32_t wx; int exp; @@ -31,3 +33,16 @@ int isinff (float x) else return (0); } + +#ifdef _DOUBLE_IS_32BITS + +int +_DEFUN (isinf, (double), + double x) +{ + return isinff ((float) x); +} + +#endif /* defined(_DOUBLE_IS_32BITS) */ + + diff --git a/newlib/libm/mathfp/sf_isnan.c b/newlib/libm/mathfp/sf_isnan.c index 3dcdbf4..ac557a6 100644 --- a/newlib/libm/mathfp/sf_isnan.c +++ b/newlib/libm/mathfp/sf_isnan.c @@ -18,7 +18,9 @@ #include "fdlibm.h" #include "zmath.h" -int isnanf (float x) +int +_DEFUN (isnanf, (float), + float x) { __int32_t wx; int exp; @@ -31,3 +33,16 @@ int isnanf (float x) else return (0); } + + +#ifdef _DOUBLE_IS_32BITS + +int +_DEFUN (isnan, (double), + double x) +{ + return isnanf((float) x); +} + +#endif /* defined(_DOUBLE_IS_32BITS) */ + |