1 2 3 4 5 6 7 8 9
#include <math.h> extern int signgam; double __lgamma_r(double, int *); double lgamma(double x) { return __lgamma_r(x, &signgam); }