Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Daniel J Sebald wrote:
> There may be more to this. I see now that "signgam" is actually an
> external as part of the math library I'm guessing.
No need for guessing --- that's what you have libc/libm manpages for.
> So, if I
> understand this, calling gamma() (i.e., the "old gamma" which is
> actually ln gamma) will set the sign of the gamma function upon
> calling gamma(). How is an optimizing compiler to know that?
It doesn't have to. signgam is a global variable, exported by the
library, and the code reads it.
> Anyway, maybe just avoiding the use of "signgam" in any way is best.
We can't do that. Not on platforms that don't sport a tgamma(), anyway.