summaryrefslogtreecommitdiffstats
path: root/newlib/libm/math/wf_pow.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-05-01 18:42:15 +0000
committerJeff Johnston <jjohnstn@redhat.com>2007-05-01 18:42:15 +0000
commit2babeb3d94cb8a507ca12b46252995b453600290 (patch)
tree3e16553171a63e889183bdc36ac4588bd1b3e2e5 /newlib/libm/math/wf_pow.c
parentbb57ddfeb7e766fafb510bce9d1deaa062bb6fd0 (diff)
downloadcygnal-2babeb3d94cb8a507ca12b46252995b453600290.tar.gz
cygnal-2babeb3d94cb8a507ca12b46252995b453600290.tar.bz2
cygnal-2babeb3d94cb8a507ca12b46252995b453600290.zip
2007-05-01 Cary R. <cygcary <at> 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.
Diffstat (limited to 'newlib/libm/math/wf_pow.c')
-rw-r--r--newlib/libm/math/wf_pow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/wf_pow.c b/newlib/libm/math/wf_pow.c
index 42655da4a..eaeed85ab 100644
--- a/newlib/libm/math/wf_pow.c
+++ b/newlib/libm/math/wf_pow.c
@@ -43,7 +43,7 @@
exc.err = 0;
exc.arg1 = (double)x;
exc.arg2 = (double)y;
- exc.retval = x;
+ exc.retval = 1.0;
if (_LIB_VERSION == _IEEE_ ||
_LIB_VERSION == _POSIX_) exc.retval = 1.0;
else if (!matherr(&exc)) {