Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / complex / clog10f.c
blob12427322761660cea759fbd43edf4b0bfc813208
1 #include <complex.h>
2 #include <math.h>
4 float complex
5 clog10f(float complex z)
7 float complex w;
8 float p, rr;
10 rr = cabsf(z);
11 p = log10f(rr);
12 rr = atan2f(cimagf(z), crealf(z)) * (float) M_IVLN10;
13 w = p + rr * I;
14 return w;