add creal/cimag macros in complex.h (and use them in the functions defs)
[musl] / src / complex / cimagf.c
index 99fffc5..f7bcd76 100644 (file)
@@ -2,6 +2,5 @@
 
 float (cimagf)(float complex z)
 {
-       union fcomplex u = {z};
-       return u.a[1];
+       return cimagf(z);
 }