From 3bde1a69c1a9eadb99e3342db125e546c3d453ff Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 4 Mar 2001 19:25:06 +0000 Subject: Update. * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: New file. Contributed by Stephen L. Moshier . * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Fix handling of boundary cases. * sysdeps/ieee754/dbl-64/e_gamma_r.c: Always initialize sign variable. * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise. * sysdeps/i386/fpu/libm-test-ulps: Adjust after addition of lgammal. --- sysdeps/ieee754/dbl-64/e_gamma_r.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sysdeps/ieee754/dbl-64/e_gamma_r.c') diff --git a/sysdeps/ieee754/dbl-64/e_gamma_r.c b/sysdeps/ieee754/dbl-64/e_gamma_r.c index eff40463be..9dc68f69b3 100644 --- a/sysdeps/ieee754/dbl-64/e_gamma_r.c +++ b/sysdeps/ieee754/dbl-64/e_gamma_r.c @@ -1,5 +1,5 @@ /* Implementation of gamma function according to ISO C. - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -46,8 +46,11 @@ __ieee754_gamma_r (double x, int *signgamp) return (x - x) / (x - x); } if ((unsigned int) hx == 0xfff00000 && lx==0) - /* x == -Inf. According to ISO this is NaN. */ - return x - x; + { + /* x == -Inf. According to ISO this is NaN. */ + *signgamp = 0; + return x - x; + } /* XXX FIXME. */ return __ieee754_exp (__ieee754_lgamma_r (x, signgamp)); -- cgit 1.4.1