Sign in
cobalt
/
cobalt
/
788710a0d7b1b8d8e2340dd5fad5e8783a239862
/
.
/
third_party
/
musl
/
src
/
complex
/
cproj.c
blob: d2b8f5a972ada4f392d67b9967415092264a661f [
file
] [
log
] [
blame
]
#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
;
}