Skip to content

Commit

Permalink
[BZ #4407]
Browse files Browse the repository at this point in the history
2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
	[BZ #4407]
	* sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
	Preserve sign in signgamp when x is zero.
  • Loading branch information
Ulrich Drepper committed Apr 10, 2008
1 parent aece054 commit facd1d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2008-02-12 Pete Eberlein <eberlein@us.ibm.com>

[BZ #4407]
* sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
Preserve sign in signgamp when x is zero.

2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>

* sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
Expand Down
6 changes: 6 additions & 0 deletions sysdeps/ieee754/ldbl-128/e_lgammal_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,12 @@ __ieee754_lgammal_r (x, signgamp)
if (! __finitel (x))
return x * x;

if (x == 0.0L)
{
if (__signbitl (x))
*signgamp = -1;
}

if (x < 0.0L)
{
q = -x;
Expand Down

0 comments on commit facd1d8

Please sign in to comment.