math: move complex math out of libm.h
[musl.git] / src / complex / clogl.c
blob88e83e87c92593f85a8cbe370066955d36d922f0
1 #include "complex_impl.h"
3 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4 long double complex clogl(long double complex z)
6 return clog(z);
8 #else
9 // FIXME
10 long double complex clogl(long double complex z)
12 long double r, phi;
14 r = cabsl(z);
15 phi = cargl(z);
16 return CMPLXL(logl(r), phi);
18 #endif