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