extend cmath (some of the functions are dummy)
[libm] / src / cmath / clogf.c
diff --git a/src/cmath/clogf.c b/src/cmath/clogf.c
new file mode 100644 (file)
index 0000000..f3aec54
--- /dev/null
@@ -0,0 +1,12 @@
+#include "libm.h"
+
+// FIXME
+
+float complex clogf(float complex z)
+{
+       float r, phi;
+
+       r = cabsf(z);
+       phi = cargf(z);
+       return cpackf(logf(r), phi);
+}