summaryrefslogtreecommitdiff
path: root/libf2c/libF77/z_log.c
diff options
context:
space:
mode:
authorburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-03 08:35:22 +0000
committerburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-03 08:35:22 +0000
commit05309e0c9d5f4d23b303deba0c19b00e138834c8 (patch)
treeea41d96ced81202582163d875e6b33b81b65d173 /libf2c/libF77/z_log.c
parentfb206187b4d24988a1d9efa2b1938f09106e1f50 (diff)
downloadgcc-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.c6
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 ) );
}