summaryrefslogtreecommitdiff
path: root/src/complex/cimagl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cimagl.c')
-rw-r--r--src/complex/cimagl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/complex/cimagl.c b/src/complex/cimagl.c
new file mode 100644
index 00000000..d9a0780c
--- /dev/null
+++ b/src/complex/cimagl.c
@@ -0,0 +1,7 @@
+#include "libm.h"
+
+long double (cimagl)(long double complex z)
+{
+ union lcomplex u = {z};
+ return u.a[1];
+}