mgetgroups: remove dependency on realloc-gnu
[gnulib.git] / lib / asinl.c
index cda04c8..c7ba71d 100644 (file)
 /* Specification.  */
 #include <math.h>
 
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
+
+long double
+asinl (long double x)
+{
+  return asin (x);
+}
+
+#else
+
+/* Code based on glibc/sysdeps/ieee754/ldbl-128/e_asinl.c.  */
+
 /*
   Long double expansions contributed by
   Stephen L. Moshier <moshier@na-net.ornl.gov>
@@ -188,6 +200,8 @@ asinl (long double x)
   return t * sign;
 }
 
+#endif
+
 #if 0
 int
 main (void)