1 2 3 4 5 6 7 8 9 10 11 12
#include "libm.h" // FIXME float complex clogf(float complex z) { float r, phi; r = cabsf(z); phi = cargf(z); return CMPLXF(logf(r), phi); }