aboutsummaryrefslogtreecommitdiff
path: root/gcc/f/runtime/libF77/r_cnjg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/f/runtime/libF77/r_cnjg.c')
-rw-r--r--gcc/f/runtime/libF77/r_cnjg.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/f/runtime/libF77/r_cnjg.c b/gcc/f/runtime/libF77/r_cnjg.c
new file mode 100644
index 00000000000..b6175eedfd7
--- /dev/null
+++ b/gcc/f/runtime/libF77/r_cnjg.c
@@ -0,0 +1,16 @@
+#include "f2c.h"
+
+#ifdef KR_headers
+VOID r_cnjg(resx, z) complex *resx, *z;
+#else
+VOID r_cnjg(complex *resx, complex *z)
+#endif
+{
+complex res;
+
+res.r = z->r;
+res.i = - z->i;
+
+resx->r = res.r;
+resx->i = res.i;
+}