extend cmath (some of the functions are dummy)
[libm] / src / cmath / cacosf.c
diff --git a/src/cmath/cacosf.c b/src/cmath/cacosf.c
new file mode 100644 (file)
index 0000000..563766e
--- /dev/null
@@ -0,0 +1,9 @@
+#include "libm.h"
+
+// FIXME
+
+float complex cacosf(float complex z)
+{
+       z = casinf(z);
+       return cpackf((float)M_PI_2 - crealf(z), -cimagf(z));
+}