aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/math/wf_jn.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-07-09 17:04:56 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-07-09 17:04:56 +0000
commit664f00763b20bcf07de6f06d37c3152061132c6e (patch)
treeb989e9993b67eda54606821755662b10e72dd0f8 /newlib/libm/math/wf_jn.c
parentb2cbcab19f75032ba62afe9a464c70894d78a9c9 (diff)
downloadnewlib-664f00763b20bcf07de6f06d37c3152061132c6e.zip
newlib-664f00763b20bcf07de6f06d37c3152061132c6e.tar.gz
newlib-664f00763b20bcf07de6f06d37c3152061132c6e.tar.bz2
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/math/wf_jn.c')
-rw-r--r--newlib/libm/math/wf_jn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libm/math/wf_jn.c b/newlib/libm/math/wf_jn.c
index c3a5263..837b6b7 100644
--- a/newlib/libm/math/wf_jn.c
+++ b/newlib/libm/math/wf_jn.c
@@ -30,7 +30,7 @@
float z;
struct exception exc;
z = __ieee754_jnf(n,x);
- if(_LIB_VERSION == _IEEE_ || isnanf(x) ) return z;
+ if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
if(fabsf(x)>(float)X_TLOSS) {
/* jnf(|x|>X_TLOSS) */
exc.type = TLOSS;
@@ -65,7 +65,7 @@
float z;
struct exception exc;
z = __ieee754_ynf(n,x);
- if(_LIB_VERSION == _IEEE_ || isnanf(x) ) return z;
+ if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
if(x <= (float)0.0){
/* ynf(n,0) = -inf or ynf(x<0) = NaN */
#ifndef HUGE_VAL