diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-04-26 04:46:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-04-26 04:46:54 +0000 |
commit | 002a604fd61d1d3b8d82a5a85959ba4ebd210aec (patch) | |
tree | a3988d512d41a34088190f531b8e4b5bd412ab48 /sysdeps/ieee754/k_standard.c | |
parent | 7095366d1efc6e58639f7c76d0b515212d61247d (diff) | |
download | glibc-002a604fd61d1d3b8d82a5a85959ba4ebd210aec.tar.gz glibc-002a604fd61d1d3b8d82a5a85959ba4ebd210aec.tar.xz glibc-002a604fd61d1d3b8d82a5a85959ba4ebd210aec.zip |
* sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
errno value vor pow(+-0,neg). * math/libm-test.inc (pow_test): Add tests for errno value for pole errors.
Diffstat (limited to 'sysdeps/ieee754/k_standard.c')
-rw-r--r-- | sysdeps/ieee754/k_standard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c index a81da13b8c..c13d11fe4e 100644 --- a/sysdeps/ieee754/k_standard.c +++ b/sysdeps/ieee754/k_standard.c @@ -528,7 +528,7 @@ static double zero = 0.0; /* used as const */ else exc.retval = -HUGE_VAL; if (_LIB_VERSION == _POSIX_) - __set_errno (EDOM); + __set_errno (ERANGE); else if (!matherr(&exc)) { if (_LIB_VERSION == _SVID_) { (void) WRITE2("pow(0,neg): DOMAIN error\n", 25); @@ -547,7 +547,7 @@ static double zero = 0.0; /* used as const */ else exc.retval = HUGE_VAL; if (_LIB_VERSION == _POSIX_) - __set_errno (EDOM); + __set_errno (ERANGE); else if (!matherr(&exc)) { if (_LIB_VERSION == _SVID_) { (void) WRITE2("pow(0,neg): DOMAIN error\n", 25); |