aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/w_tgammaf_compat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/w_tgammaf_compat.c b/math/w_tgammaf_compat.c
index 34e0e096e0..addbdb1109 100644
--- a/math/w_tgammaf_compat.c
+++ b/math/w_tgammaf_compat.c
@@ -14,6 +14,7 @@
#include <errno.h>
#include <math.h>
+#include <stddef.h>
#include <math_private.h>
#include <math-svid-compat.h>
#include <libm-alias-float.h>
@@ -22,8 +23,7 @@
float
__tgammaf(float x)
{
- int local_signgam;
- float y = __ieee754_gammaf_r(x,&local_signgam);
+ float y = __ieee754_gammaf_r(x, NULL);
if(__glibc_unlikely (!isfinite (y) || y == 0)
&& (isfinite (x) || (isinf (x) && x < 0.0))
@@ -41,7 +41,7 @@ __tgammaf(float x)
/* tgammaf overflow */
return __kernel_standard_f(x, x, 140);
}
- return local_signgam < 0 ? - y : y;
+ return y;
}
libm_alias_float (__tgamma, tgamma)
#endif