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