Sign in
cobalt
/
cobalt
/
refs/heads/master
/
.
/
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
;
}