summaryrefslogtreecommitdiff
path: root/gnu/lib/libf2c/libF77/c_exp.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-12-30 17:35:29 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-12-30 17:35:29 +0000
commit157d4bd650a3e421c5bac48da7e528af9a6a76e2 (patch)
tree0379fb2c85e183c3c5669d425b3e42ae4592791b /gnu/lib/libf2c/libF77/c_exp.c
parent791194721fec8918406191b62da6dc41f2d690e5 (diff)
Actual synch with 3.3.5.
Changes in Makefile.bsd-wrapper to avoid prereq. Fix in lib*/config.h.in to include the right ones and get the correct definitions. Bump of shlib_version accordingly.
Diffstat (limited to 'gnu/lib/libf2c/libF77/c_exp.c')
-rw-r--r--gnu/lib/libf2c/libF77/c_exp.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/gnu/lib/libf2c/libF77/c_exp.c b/gnu/lib/libf2c/libF77/c_exp.c
index 52d0d2ffc95..56a8695420c 100644
--- a/gnu/lib/libf2c/libF77/c_exp.c
+++ b/gnu/lib/libf2c/libF77/c_exp.c
@@ -1,19 +1,14 @@
#include "f2c.h"
-#ifdef KR_headers
-extern double exp(), cos(), sin();
-
- VOID c_exp(r, z) complex *r, *z;
-#else
#undef abs
#include "math.h"
-void c_exp(complex *r, complex *z)
-#endif
+void
+c_exp (complex * r, complex * z)
{
- double expx, zi = z->i;
+ double expx, zi = z->i;
- expx = exp(z->r);
- r->r = expx * cos(zi);
- r->i = expx * sin(zi);
- }
+ expx = exp (z->r);
+ r->r = expx * cos (zi);
+ r->i = expx * sin (zi);
+}