This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]