summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/libF77/d_cnjg.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libf2c/libF77/d_cnjg.c')
-rw-r--r--contrib/libf2c/libF77/d_cnjg.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/contrib/libf2c/libF77/d_cnjg.c b/contrib/libf2c/libF77/d_cnjg.c
index 1afa3bc..c1970a5 100644
--- a/contrib/libf2c/libF77/d_cnjg.c
+++ b/contrib/libf2c/libF77/d_cnjg.c
@@ -2,16 +2,12 @@
VOID
#ifdef KR_headers
-d_cnjg(resx, z) doublecomplex *resx, *z;
+d_cnjg(r, z) doublecomplex *r, *z;
#else
-d_cnjg(doublecomplex *resx, doublecomplex *z)
+d_cnjg(doublecomplex *r, doublecomplex *z)
#endif
{
-doublecomplex res;
-
-res.r = z->r;
-res.i = - z->i;
-
-resx->r = res.r;
-resx->i = res.i;
-}
+ doublereal zi = z->i;
+ r->r = z->r;
+ r->i = -zi;
+ }
OpenPOWER on IntegriCloud