aboutsummaryrefslogtreecommitdiff
path: root/gcc/f/runtime/libF77/d_tan.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/f/runtime/libF77/d_tan.c')
-rw-r--r--gcc/f/runtime/libF77/d_tan.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/f/runtime/libF77/d_tan.c b/gcc/f/runtime/libF77/d_tan.c
new file mode 100644
index 00000000000..af94a053223
--- /dev/null
+++ b/gcc/f/runtime/libF77/d_tan.c
@@ -0,0 +1,13 @@
+#include "f2c.h"
+
+#ifdef KR_headers
+double tan();
+double d_tan(x) doublereal *x;
+#else
+#undef abs
+#include <math.h>
+double d_tan(doublereal *x)
+#endif
+{
+return( tan(*x) );
+}