diff options
Diffstat (limited to 'src/complex/cimagf.c')
-rw-r--r-- | src/complex/cimagf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/complex/cimagf.c b/src/complex/cimagf.c new file mode 100644 index 00000000..99fffc58 --- /dev/null +++ b/src/complex/cimagf.c @@ -0,0 +1,7 @@ +#include "libm.h" + +float (cimagf)(float complex z) +{ + union fcomplex u = {z}; + return u.a[1]; +} |