diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-05-01 18:42:15 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-05-01 18:42:15 +0000 |
commit | 2babeb3d94cb8a507ca12b46252995b453600290 (patch) | |
tree | 3e16553171a63e889183bdc36ac4588bd1b3e2e5 /newlib/libm/math/w_asin.c | |
parent | bb57ddfeb7e766fafb510bce9d1deaa062bb6fd0 (diff) | |
download | cygnal-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/w_asin.c')
-rw-r--r-- | newlib/libm/math/w_asin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/w_asin.c b/newlib/libm/math/w_asin.c index b146dfd9b..e7884b2e3 100644 --- a/newlib/libm/math/w_asin.c +++ b/newlib/libm/math/w_asin.c @@ -104,7 +104,7 @@ MATHREF exc.name = "asin"; exc.err = 0; exc.arg1 = exc.arg2 = x; - exc.retval = 0.0; + exc.retval = nan(""); if(_LIB_VERSION == _POSIX_) errno = EDOM; else if (!matherr(&exc)) { |