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
iconv: add euro symbol to GBK as single byte 0x80
[musl.git]
/
src
/
complex
/
cacoshf.c
blob
8bd80581ae0d7d2ad42ceed52332570078f50943
1
#include
"complex_impl.h"
2
3
float complex
cacoshf
(
float complex
z
)
4
{
5
int
zineg
=
signbit
(
cimagf
(
z
));
6
7
z
=
cacosf
(
z
);
8
if
(
zineg
)
return
CMPLXF
(
cimagf
(
z
), -
crealf
(
z
));
9
else return
CMPLXF
(-
cimagf
(
z
),
crealf
(
z
));
10
}