[Bug math/4407] signgam value for lgamma on special values

jakub at redhat dot com sourceware-bugzilla@sourceware.org
Fri Apr 27 09:07:00 GMT 2007


------- 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.



More information about the Glibc-bugs mailing list