Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
complex
/
cacoshf.c
blob: 8bd80581ae0d7d2ad42ceed52332570078f50943 [
file
] [
log
] [
blame
]
#include
"complex_impl.h"
float
complex cacoshf
(
float
complex z
)
{
int
zineg
=
signbit
(
cimagf
(
z
));
z
=
cacosf
(
z
);
if
(
zineg
)
return
CMPLXF
(
cimagf
(
z
),
-
crealf
(
z
));
else
return
CMPLXF
(-
cimagf
(
z
),
crealf
(
z
));
}