This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/4407] signgam value for lgamma on special values
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Apr 2007 09:07:33 -0000
- Subject: [Bug math/4407] signgam value for lgamma on special values
- References: <20070422223900.4407.vincent+libc@vinc17.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-04-27 10:07 -------
FYI, Solaris for:
#define _XOPEN_SOURCE 600
#include <math.h>
#include <stdio.h>
double zero = 0.0;
double mzero;
int
main (void)
{
double d;
mzero = copysign (zero, -1.0);
d = lgamma (zero);
printf ("%g %d\n", d, signgam);
d = lgamma (mzero);
printf ("%g %d\n", d, signgam);
return 0;
}
also prints Inf 1 twice.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4407
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.