mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 08:59:10 +08:00
407c72cb29
* libF77/*: Fix formatting. * libI77/*: Likewise. * libU77/*: Likewise. From-SVN: r54145
14 lines
219 B
C
14 lines
219 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));
|
|
}
|