Don't let tgammal() modify signgam. Only lgamma*() should modify it.
Letting tgammal() modify signgam has two disadvantages: - It breaks valid code that assumes that the value of signgam is not clobbered by calls to tgammal(). - It makes this function depend on the presence of signgam. signgam is an X/Open System Interface. It is not part of the C standard.
Showing with 9 additions and 22 deletions