Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
complex
/
cproj.c
blob: 9968e05a43400598891b8860c44f5f079e6cbe67 [
file
] [
log
] [
blame
]
#include
"libm.h"
double
complex cproj
(
double
complex z
)
{
if
(
isinf
(
creal
(
z
))
||
isinf
(
cimag
(
z
)))
return
CMPLX
(
INFINITY
,
copysign
(
0.0
,
creal
(
z
)));
return
z
;
}