ceil-ieee tests: More tests.
[gnulib.git] / lib / tanl.c
index 07fbc09..e5efb06 100644 (file)
 /* Specification.  */
 #include <math.h>
 
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
+
+long double
+tanl (long double x)
+{
+  return tan (x);
+}
+
+#else
+
 /* tanl(x)
  * Return tangent function of x.
  *
@@ -49,7 +59,7 @@
  *      TRIG(x) returns trig(x) nearly rounded
  */
 
-#include "trigl.h"
+# include "trigl.h"
 
 /*
  * ====================================================
@@ -208,6 +218,8 @@ tanl (long double x)
     }
 }
 
+#endif
+
 #if 0
 int
 main (void)