diff options
Diffstat (limited to 'libc-top-half/musl/src/complex/catanhl.c')
-rw-r--r-- | libc-top-half/musl/src/complex/catanhl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/complex/catanhl.c b/libc-top-half/musl/src/complex/catanhl.c new file mode 100644 index 0000000..6025c41 --- /dev/null +++ b/libc-top-half/musl/src/complex/catanhl.c @@ -0,0 +1,14 @@ +#include "complex_impl.h" + +#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 +long double complex catanhl(long double complex z) +{ + return catanh(z); +} +#else +long double complex catanhl(long double complex z) +{ + z = catanl(CMPLXL(-cimagl(z), creall(z))); + return CMPLXL(cimagl(z), -creall(z)); +} +#endif |