diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-05-08 11:58:18 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-05-08 11:58:18 +0000 |
commit | d8cd06db62d92f86cc8cc3c0d6a489bd207bb834 (patch) | |
tree | 3906235135ce8e0b4ea11d5dadc076699be07738 /sysdeps/ieee754/k_standard.c | |
parent | bb7cf681e90d5aa2d867aeff4948ac605447de7d (diff) | |
download | glibc-d8cd06db62d92f86cc8cc3c0d6a489bd207bb834.tar.gz glibc-d8cd06db62d92f86cc8cc3c0d6a489bd207bb834.tar.xz glibc-d8cd06db62d92f86cc8cc3c0d6a489bd207bb834.zip |
Improve tgamma accuracy (bugs 2546, 2560, 5159, 15426).
Diffstat (limited to 'sysdeps/ieee754/k_standard.c')
-rw-r--r-- | sysdeps/ieee754/k_standard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c index cd3123046b..150921f90b 100644 --- a/sysdeps/ieee754/k_standard.c +++ b/sysdeps/ieee754/k_standard.c @@ -837,7 +837,7 @@ __kernel_standard(double x, double y, int type) exc.type = OVERFLOW; exc.name = type < 100 ? "tgamma" : (type < 200 ? "tgammaf" : "tgammal"); - exc.retval = HUGE_VAL; + exc.retval = __copysign (HUGE_VAL, x); if (_LIB_VERSION == _POSIX_) __set_errno (ERANGE); else if (!matherr(&exc)) { |