lib/libm/wf_tgamma: Fix tgammaf handling of -inf, should return nan.
{
float y;
int local_signgam;
+ if (!isfinite(x)) {
+ /* special cases: tgammaf(nan)=nan, tgammaf(inf)=inf, tgammaf(-inf)=nan */
+ return x + INFINITY;
+ }
y = expf(__ieee754_lgammaf_r(x,&local_signgam));
if (local_signgam < 0) y = -y;
#ifdef _IEEE_LIBM
