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/libm/mathfp/sf_isnan.c | |
parent | 44506780d9bec36f13f3ee79958d1fc6d446d71f (diff) | |
download | cygnal-a6a6f9feceadef016ed84d6f23b81733b47985f0.tar.gz cygnal-a6a6f9feceadef016ed84d6f23b81733b47985f0.tar.bz2 cygnal-a6a6f9feceadef016ed84d6f23b81733b47985f0.zip |
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/libm/mathfp/sf_isnan.c')
-rw-r--r-- | newlib/libm/mathfp/sf_isnan.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/newlib/libm/mathfp/sf_isnan.c b/newlib/libm/mathfp/sf_isnan.c index 3dcdbf452..ac557a6b8 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) */ + |