repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
[musl.git]
/
src
/
complex
/
ctanl.c
blob
ac1c3e0ad86d7611b8a9a74ed68a99abbffdbc21
1
#include
"libm.h"
2
3
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4
long double complex
ctanl
(
long double complex
z
)
5
{
6
return
ctan
(
z
);
7
}
8
#else
9
long double complex
ctanl
(
long double complex
z
)
10
{
11
z
=
ctanhl
(
CMPLXL
(-
cimagl
(
z
),
creall
(
z
)));
12
return
CMPLXL
(
cimagl
(
z
), -
creall
(
z
));
13
}
14
#endif