From 2babeb3d94cb8a507ca12b46252995b453600290 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 1 May 2007 18:42:15 +0000 Subject: 2007-05-01 Cary R. yahoo.com> * libm/math/e_pow.c: Fix to be consistent with glibc with regards to treatment of NaN and +-inf arguments. * libm/math/ef_pow.c: Ditto. * libm/math/w_pow.c: Ditto. * libm/math/wf_pow.c: Ditto. * libm/math/w_acos.c: Fix domain errors to return NaN. * libm/math/w_asin.c: Ditto. * libm/math/wf_acos.c: Ditto. * libm/math/wf_asin.c: Ditto. * libm/math/w_log.c: Fix to return NaN for negative number inputs. * libm/math/wf_log.c: Ditto. * libm/math/wf_log10.c: Ditto. * libm/math/w_log10.c: Ditto. --- newlib/libm/math/wf_log.c | 1 + 1 file changed, 1 insertion(+) (limited to 'newlib/libm/math/wf_log.c') diff --git a/newlib/libm/math/wf_log.c b/newlib/libm/math/wf_log.c index cd373b402..369ef3261 100644 --- a/newlib/libm/math/wf_log.c +++ b/newlib/libm/math/wf_log.c @@ -63,6 +63,7 @@ else if (!matherr(&exc)) { errno = EDOM; } + exc.retval = nan(""); } if (exc.err != 0) errno = exc.err; -- cgit v1.2.3