diff options
author | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-04-04 13:21:36 +0000 |
---|---|---|
committer | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-04-04 13:21:36 +0000 |
commit | 50325cbab454647a313ba68279c844e2bc6143af (patch) | |
tree | 0e52e902317bb4442448c5c61ab6d2162111a240 /gnu/usr.bin/gcc/f/runtime/libF77/c_exp.c | |
parent | b2ad87cb6f8d3d16576e4e93251e0228f0672cdc (diff) |
sync g77 to version 0.5.20 - i hope i got everything right because there
is no patch from 0.5.19 to 0.5.20 - so i did it by diffing two gcc trees
looking carefully at the results
what does the new g77 give us:
* now it completely works on the alpha (64bit)
* faster
* less bugs :-)
Diffstat (limited to 'gnu/usr.bin/gcc/f/runtime/libF77/c_exp.c')
-rw-r--r-- | gnu/usr.bin/gcc/f/runtime/libF77/c_exp.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gnu/usr.bin/gcc/f/runtime/libF77/c_exp.c b/gnu/usr.bin/gcc/f/runtime/libF77/c_exp.c index 68aebd3dbfb..8d3d33d0fe3 100644 --- a/gnu/usr.bin/gcc/f/runtime/libF77/c_exp.c +++ b/gnu/usr.bin/gcc/f/runtime/libF77/c_exp.c @@ -3,17 +3,21 @@ #ifdef KR_headers extern double exp(), cos(), sin(); - VOID c_exp(r, z) complex *r, *z; + VOID c_exp(resx, z) complex *resx, *z; #else #undef abs #include <math.h> -void c_exp(complex *r, complex *z) +void c_exp(complex *resx, complex *z) #endif { double expx; +complex res; expx = exp(z->r); -r->r = expx * cos(z->i); -r->i = expx * sin(z->i); +res.r = expx * cos(z->i); +res.i = expx * sin(z->i); + +resx->r = res.r; +resx->i = res.i; } |