diff options
author | burley <burley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-03 08:33:21 +0000 |
---|---|---|
committer | burley <burley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-03 08:33:21 +0000 |
commit | fb206187b4d24988a1d9efa2b1938f09106e1f50 (patch) | |
tree | 45ef91b9ac4f48ed52f259bf5ef40196e9479ead /libf2c/libF77/z_sin.c | |
parent | 502f3e6fec715527e92332d89fc42ade1f39fae5 (diff) | |
download | gcc-fb206187b4d24988a1d9efa2b1938f09106e1f50.tar.gz |
revert back to netlib versions as of f2c-19990501
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26739 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libf2c/libF77/z_sin.c')
-rw-r--r-- | libf2c/libF77/z_sin.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libf2c/libF77/z_sin.c b/libf2c/libF77/z_sin.c index 94456c9c30a..577be1d85f9 100644 --- a/libf2c/libF77/z_sin.c +++ b/libf2c/libF77/z_sin.c @@ -2,18 +2,14 @@ #ifdef KR_headers double sin(), cos(), sinh(), cosh(); -VOID z_sin(resx, z) doublecomplex *resx, *z; +VOID z_sin(r, z) doublecomplex *r, *z; #else #undef abs -#include <math.h> -void z_sin(doublecomplex *resx, doublecomplex *z) +#include "math.h" +void z_sin(doublecomplex *r, doublecomplex *z) #endif { -doublecomplex res; - -res.r = sin(z->r) * cosh(z->i); -res.i = cos(z->r) * sinh(z->i); - -resx->r = res.r; -resx->i = res.i; -} + double zr = z->r; + r->r = sin(zr) * cosh(z->i); + r->i = cos(zr) * sinh(z->i); + } |