about summary refs log tree commit diff
path: root/src/complex/cimagf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cimagf.c')
-rw-r--r--src/complex/cimagf.c7
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];
+}