add creal/cimag macros in complex.h (and use them in the functions defs)
[musl] / src / complex / cabs.c
1 #include "libm.h"
2
3 double cabs(double complex z)
4 {
5         return hypot(creal(z), cimag(z));
6 }