From 664f00763b20bcf07de6f06d37c3152061132c6e Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 9 Jul 2009 17:04:56 +0000 Subject: 2009-07-09 Craig Howland * 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 , fix comment. * libm/common/sf_isinf.c: Add #include , 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 ). --- newlib/libm/math/wf_scalb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libm/math/wf_scalb.c') diff --git a/newlib/libm/math/wf_scalb.c b/newlib/libm/math/wf_scalb.c index bd2d9f8b4..d2c3cd2aa 100644 --- a/newlib/libm/math/wf_scalb.c +++ b/newlib/libm/math/wf_scalb.c @@ -50,7 +50,7 @@ struct exception exc; z = __ieee754_scalbf(x,fn); if(_LIB_VERSION == _IEEE_) return z; - if(!(finitef(z)||isnanf(z))&&finitef(x)) { + if(!(finitef(z)||isnan(z))&&finitef(x)) { /* scalbf overflow; SVID also returns +-HUGE_VAL */ exc.type = OVERFLOW; exc.name = "scalbf"; -- cgit v1.2.3