]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_tgammaf_compat.c
x86-64: Add vector tan/tanf implementation to libmvec
[thirdparty/glibc.git] / math / w_tgammaf_compat.c
index e6ae48c1f5ab7843784d17cfb8bdf58d86e74656..34e0e096e00d0757d817f0b1fc5cb16fd2185d85 100644 (file)
@@ -1,5 +1,4 @@
 /* w_gammaf.c -- float version of w_gamma.c.
- * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
  */
 
 /*
@@ -17,7 +16,9 @@
 #include <math.h>
 #include <math_private.h>
 #include <math-svid-compat.h>
+#include <libm-alias-float.h>
 
+#if LIBM_SVID_COMPAT
 float
 __tgammaf(float x)
 {
@@ -30,7 +31,7 @@ __tgammaf(float x)
          if (x == (float)0.0)
            /* tgammaf pole */
            return __kernel_standard_f(x, x, 150);
-         else if(__floorf(x)==x&&x<0.0f)
+         else if(floorf(x)==x&&x<0.0f)
            /* tgammaf domain */
            return __kernel_standard_f(x, x, 141);
          else if (y == 0)
@@ -42,4 +43,5 @@ __tgammaf(float x)
        }
        return local_signgam < 0 ? - y : y;
 }
-weak_alias (__tgammaf, tgammaf)
+libm_alias_float (__tgamma, tgamma)
+#endif