]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_lgammaf_r_compat.c
Improve the accuracy of tgamma (BZ #26983)
[thirdparty/glibc.git] / math / w_lgammaf_r_compat.c
index d9601f45d7f03ea543e6ecc9cd944a5f340a5466..78fc4fcb239abd0a0c0acf8bf6c05103e7560bfa 100644 (file)
 #include <math.h>
 #include <math_private.h>
 #include <math-svid-compat.h>
+#include <libm-alias-float.h>
 
 
+#if LIBM_SVID_COMPAT
 float
 __lgammaf_r(float x, int *signgamp)
 {
@@ -29,10 +31,11 @@ __lgammaf_r(float x, int *signgamp)
        if(__builtin_expect(!isfinite(y), 0)
           && isfinite(x) && _LIB_VERSION != _IEEE_)
                return __kernel_standard_f(x, x,
-                                          __floorf(x)==x&&x<=0.0f
+                                          floorf(x)==x&&x<=0.0f
                                           ? 115 /* lgamma pole */
                                           : 114); /* lgamma overflow */
 
        return y;
 }
-weak_alias (__lgammaf_r, lgammaf_r)
+libm_alias_float_r (__lgamma, lgamma, _r)
+#endif