diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-09-03 15:32:54 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-09-03 15:32:54 +0000 |
commit | ffa3cd7f1a472954e9be22a48140c6eef45c3ef5 (patch) | |
tree | 80e53151d62629bdfc55c3aebb7156d657e8e235 /sysdeps/ieee754 | |
parent | 8f02859f17d01ce0cf542d934a04a79f048b73fd (diff) | |
download | glibc-ffa3cd7f1a472954e9be22a48140c6eef45c3ef5.tar glibc-ffa3cd7f1a472954e9be22a48140c6eef45c3ef5.tar.gz glibc-ffa3cd7f1a472954e9be22a48140c6eef45c3ef5.tar.bz2 glibc-ffa3cd7f1a472954e9be22a48140c6eef45c3ef5.zip |
Fix lgammaf spurious underflow (bug 15427).
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/flt-32/e_lgammaf_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ieee754/flt-32/e_lgammaf_r.c b/sysdeps/ieee754/flt-32/e_lgammaf_r.c index 2e92269085..0dba9af8d7 100644 --- a/sysdeps/ieee754/flt-32/e_lgammaf_r.c +++ b/sysdeps/ieee754/flt-32/e_lgammaf_r.c @@ -150,8 +150,8 @@ __ieee754_lgammaf_r(float x, int *signgamp) *signgamp = -1; return one/fabsf(x); } - if(__builtin_expect(ix<0x1c800000, 0)) { - /* |x|<2**-70, return -log(|x|) */ + if(__builtin_expect(ix<0x30800000, 0)) { + /* |x|<2**-30, return -log(|x|) */ if(hx<0) { *signgamp = -1; return -__ieee754_logf(-x); |