diff options
Diffstat (limited to 'gcc/f/runtime/libF77/d_cnjg.c')
-rw-r--r-- | gcc/f/runtime/libF77/d_cnjg.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/f/runtime/libF77/d_cnjg.c b/gcc/f/runtime/libF77/d_cnjg.c new file mode 100644 index 00000000000..1afa3bc4061 --- /dev/null +++ b/gcc/f/runtime/libF77/d_cnjg.c @@ -0,0 +1,17 @@ +#include "f2c.h" + + VOID +#ifdef KR_headers +d_cnjg(resx, z) doublecomplex *resx, *z; +#else +d_cnjg(doublecomplex *resx, doublecomplex *z) +#endif +{ +doublecomplex res; + +res.r = z->r; +res.i = - z->i; + +resx->r = res.r; +resx->i = res.i; +} |