fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
[musl.git] / src / complex / ctanl.c
blobac1c3e0ad86d7611b8a9a74ed68a99abbffdbc21
1 #include "libm.h"
3 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4 long double complex ctanl(long double complex z)
6 return ctan(z);
8 #else
9 long double complex ctanl(long double complex z)
11 z = ctanhl(CMPLXL(-cimagl(z), creall(z)));
12 return CMPLXL(cimagl(z), -creall(z));
14 #endif