first commit of the new libm!
[musl] / src / complex / cargf.c
diff --git a/src/complex/cargf.c b/src/complex/cargf.c
new file mode 100644 (file)
index 0000000..ce183c4
--- /dev/null
@@ -0,0 +1,6 @@
+#include "libm.h"
+
+float cargf(float complex z)
+{
+       return atan2f(cimagf(z), crealf(z));
+}