aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-10-06 18:37:30 +0000
committerUlrich Drepper <drepper@redhat.com>2007-10-06 18:37:30 +0000
commitc039eedd66aff3706fede2188d920e173543b8e8 (patch)
tree7caae3bc57aa7ff2781e7e32c4dc4c8925ad096a /math
parent718946816cf60374f9d8f674d3ed649fdb33205a (diff)
downloadglibc-c039eedd66aff3706fede2188d920e173543b8e8.tar
glibc-c039eedd66aff3706fede2188d920e173543b8e8.tar.gz
glibc-c039eedd66aff3706fede2188d920e173543b8e8.tar.bz2
glibc-c039eedd66aff3706fede2188d920e173543b8e8.zip
[BZ #4407]
* sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0. * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise. * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise. * math/libm-test.inc: Add test for this case. Half the patch by Christian Iseli <christian.iseli@licr.org>.
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 81dd364f77..da68d40bb4 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997-2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2006, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
@@ -3221,6 +3221,9 @@ lgamma_test (void)
TEST_f_f (lgamma, plus_infty, plus_infty);
TEST_f_f (lgamma, 0, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
+ check_int ("signgam for lgamma(0) == 1", signgam, 1, 0, 0, 0);
+ TEST_f_f (lgamma, minus_zero, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
+ check_int ("signgam for lgamma(-0) == -1", signgam, -1, 0, 0, 0);
TEST_f_f (lgamma, nan_value, nan_value);
/* lgamma (x) == +inf plus divide by zero exception for integer x <= 0. */