mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 00:29:36 +08:00
4d85a6fea6
* libF77/*: Delete KR_headers cruft. * libI77/*: Likewise. * libU77/*: Likewise. From-SVN: r54132
13 lines
212 B
C
13 lines
212 B
C
#include "f2c.h"
|
|
|
|
#undef abs
|
|
#include "math.h"
|
|
extern double f__cabs(double, double);
|
|
|
|
void c_log(complex *r, complex *z)
|
|
{
|
|
double zi, zr;
|
|
r->i = atan2(zi = z->i, zr = z->r);
|
|
r->r = log( f__cabs(zr, zi) );
|
|
}
|