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