diff options
author | burley <burley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-03 08:35:22 +0000 |
---|---|---|
committer | burley <burley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-03 08:35:22 +0000 |
commit | 05309e0c9d5f4d23b303deba0c19b00e138834c8 (patch) | |
tree | ea41d96ced81202582163d875e6b33b81b65d173 /libf2c/libF77/z_log.c | |
parent | fb206187b4d24988a1d9efa2b1938f09106e1f50 (diff) | |
download | gcc-05309e0c9d5f4d23b303deba0c19b00e138834c8.tar.gz |
Update to Netlib version of 1999-05-03
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libf2c/libF77/z_log.c')
-rw-r--r-- | libf2c/libF77/z_log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libf2c/libF77/z_log.c b/libf2c/libF77/z_log.c index 2d52b941d68..34c56d42a8c 100644 --- a/libf2c/libF77/z_log.c +++ b/libf2c/libF77/z_log.c @@ -10,7 +10,7 @@ extern double f__cabs(double, double); void z_log(doublecomplex *r, doublecomplex *z) #endif { - double zi = z->i; - r->i = atan2(zi, z->r); - r->r = log( f__cabs( z->r, zi ) ); + double zi = z->i, zr = z->r; + r->i = atan2(zi, zr); + r->r = log( f__cabs( zr, zi ) ); } |