about summary refs log tree commit diff
path: root/src/complex/casinhl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/casinhl.c')
-rw-r--r--src/complex/casinhl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/complex/casinhl.c b/src/complex/casinhl.c
new file mode 100644
index 00000000..e5d80cef
--- /dev/null
+++ b/src/complex/casinhl.c
@@ -0,0 +1,14 @@
+#include "libm.h"
+
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
+long double complex casinhl(long double complex z)
+{
+	return casinh(z);
+}
+#else
+long double complex casinhl(long double complex z)
+{
+	z = casinl(cpackl(-cimagl(z), creall(z)));
+	return cpackl(cimagl(z), -creall(z));
+}
+#endif