diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-07-09 17:04:56 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-07-09 17:04:56 +0000 |
commit | 664f00763b20bcf07de6f06d37c3152061132c6e (patch) | |
tree | b989e9993b67eda54606821755662b10e72dd0f8 /newlib/libm/common | |
parent | b2cbcab19f75032ba62afe9a464c70894d78a9c9 (diff) | |
download | cygnal-664f00763b20bcf07de6f06d37c3152061132c6e.tar.gz cygnal-664f00763b20bcf07de6f06d37c3152061132c6e.tar.bz2 cygnal-664f00763b20bcf07de6f06d37c3152061132c6e.zip |
2009-07-09 Craig Howland <howland@LGSInnovations.com>
* libm/math/ef_scalb.c: Replace isnanf() (pre-C99 function call) with
isnan() (C99 macro).
* libm/math/wf_log.c: Ditto.
* libm/math/wf_j0.c: Ditto.
* libm/math/wf_sqrt.c: Ditto.
* libm/math/wf_pow.c: Ditto.
* libm/math/wf_fmod.c: Ditto.
* libm/math/wf_remainder.c: Ditto.
* libm/math/wf_scalb.c: Ditto.
* libm/math/wf_atanh.c: Ditto.
* libm/math/wf_cosh.c: Ditto.
* libm/math/wf_acos.c: Ditto.
* libm/math/wf_acosh.c: Ditto.
* libm/math/wf_jn.c: Ditto.
* libm/math/wf_log10.c: Ditto.
* libm/math/wf_asin.c: Ditto.
* libm/math/wf_j1.c: Ditto.
* libm/common/sf_isnan.c: Add #include <ieeefp.h>, fix comment.
* libm/common/sf_isinf.c: Add #include <ieeefp.h>, adjust comment to
match that from s_isinf.c.
* libc/include/machine/ieeefp.h: Simplify isinf and isnan macros to
remove un-necessary extension use (in a similar manner to as was
recently done in math.h).
* libc/include/math.h: Remove isnanf and isinff prototypes (are in
ieeefp.h).
* libm/machine/spu/sf_isinf.c: Fix comment (remove <math.h>).
Diffstat (limited to 'newlib/libm/common')
-rw-r--r-- | newlib/libm/common/sf_isinf.c | 10 | ||||
-rw-r--r-- | newlib/libm/common/sf_isnan.c | 5 |
2 files changed, 12 insertions, 3 deletions
diff --git a/newlib/libm/common/sf_isinf.c b/newlib/libm/common/sf_isinf.c index 74ba4edf7..6595a681c 100644 --- a/newlib/libm/common/sf_isinf.c +++ b/newlib/libm/common/sf_isinf.c @@ -1,11 +1,17 @@ /* * isinff(x) returns 1 if x is +-infinity, else 0; * - * isinff is an extension declared in <ieeefp.h> and - * <math.h>. + * isinf is a <math.h> macro in the C99 standard. It was previously + * implemented as isinf and isinff functions by newlib and are still declared + * as such in <ieeefp.h>. Newlib supplies it here as a function if the user + * chooses to use <ieeefp.h> or needs to link older code compiled with the + * previous <math.h> declaration. */ #include "fdlibm.h" +#include <ieeefp.h> + +#undef isinff int _DEFUN (isinff, (x), diff --git a/newlib/libm/common/sf_isnan.c b/newlib/libm/common/sf_isnan.c index befc3b2b2..ddda6b331 100644 --- a/newlib/libm/common/sf_isnan.c +++ b/newlib/libm/common/sf_isnan.c @@ -15,10 +15,13 @@ /* * isnanf(x) returns 1 is x is nan, else 0; * - * isnanf is an extension declared in <ieeefp.h> and <math.h>. + * isnanf is an extension declared in <ieeefp.h>. */ #include "fdlibm.h" +#include <ieeefp.h> + +#undef isnanf int _DEFUN (isnanf, (x), |