Sign in
cobalt
/
cobalt.git
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
complex
/
cproj.c
blob: d2b8f5a972ada4f392d67b9967415092264a661f [
file
]
#include
"complex_impl.h"
double
complex cproj
(
double
complex z
)
{
if
(
isinf
(
creal
(
z
))
||
isinf
(
cimag
(
z
)))
return
CMPLX
(
INFINITY
,
copysign
(
0.0
,
cimag
(
z
)));
return
z
;
}