summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/complex/ccosl.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libc-top-half/musl/src/complex/ccosl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/complex/ccosl.c b/libc-top-half/musl/src/complex/ccosl.c
new file mode 100644
index 0000000..2530006
--- /dev/null
+++ b/libc-top-half/musl/src/complex/ccosl.c
@@ -0,0 +1,13 @@
+#include "complex_impl.h"
+
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
+long double complex ccosl(long double complex z)
+{
+ return ccos(z);
+}
+#else
+long double complex ccosl(long double complex z)
+{
+ return ccoshl(CMPLXL(-cimagl(z), creall(z)));
+}
+#endif