summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/complex/cargf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/complex/cargf.c')
-rw-r--r--libc-top-half/musl/src/complex/cargf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/complex/cargf.c b/libc-top-half/musl/src/complex/cargf.c
new file mode 100644
index 0000000..9a6c19b
--- /dev/null
+++ b/libc-top-half/musl/src/complex/cargf.c
@@ -0,0 +1,6 @@
+#include "complex_impl.h"
+
+float cargf(float complex z)
+{
+ return atan2f(cimagf(z), crealf(z));
+}