Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
29f3202b731185d993a399f04d2f3e3f78db5a81
/
.
/
src
/
complex
/
cprojf.c
blob: 653be5e87cfcbf2d64f297fe21bed06423aab9e3 [
file
] [
log
] [
blame
]
#include
"libm.h"
float
complex cprojf
(
float
complex z
)
{
if
(
isinf
(
crealf
(
z
))
||
isinf
(
cimagf
(
z
)))
return
CMPLXF
(
INFINITY
,
copysignf
(
0.0
,
crealf
(
z
)));
return
z
;
}