extend cmath (some of the functions are dummy)
[libm] / src / cmath / cimagf.c
diff --git a/src/cmath/cimagf.c b/src/cmath/cimagf.c
new file mode 100644 (file)
index 0000000..99fffc5
--- /dev/null
@@ -0,0 +1,7 @@
+#include "libm.h"
+
+float (cimagf)(float complex z)
+{
+       union fcomplex u = {z};
+       return u.a[1];
+}