add creal/cimag macros in complex.h (and use them in the functions defs)
[musl] / src / complex / cimagl.c
index d9a0780..9ec24ee 100644 (file)
@@ -2,6 +2,5 @@
 
 long double (cimagl)(long double complex z)
 {
-       union lcomplex u = {z};
-       return u.a[1];
+       return cimagl(z);
 }