1 2 3 4 5 6 7
#include "libm.h" float (cimagf)(float complex z) { union fcomplex u = {z}; return u.a[1]; }