summaryrefslogtreecommitdiff
path: root/gnu/lib/libf2c/libF77/d_cnjg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libf2c/libF77/d_cnjg.c')
-rw-r--r--gnu/lib/libf2c/libF77/d_cnjg.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/lib/libf2c/libF77/d_cnjg.c b/gnu/lib/libf2c/libF77/d_cnjg.c
new file mode 100644
index 00000000000..c1970a56da9
--- /dev/null
+++ b/gnu/lib/libf2c/libF77/d_cnjg.c
@@ -0,0 +1,13 @@
+#include "f2c.h"
+
+ VOID
+#ifdef KR_headers
+d_cnjg(r, z) doublecomplex *r, *z;
+#else
+d_cnjg(doublecomplex *r, doublecomplex *z)
+#endif
+{
+ doublereal zi = z->i;
+ r->r = z->r;
+ r->i = -zi;
+ }