Sign in
cobalt
/
cobalt
/
b108943525536ed016362e9c99ce219a9c351109
/
.
/
third_party
/
musl
/
src
/
complex
/
cprojf.c
blob: 15a874bb2f8bbf7ddf337e4233eb97fd3217dccc [
file
] [
log
] [
blame
]
#include
"complex_impl.h"
float
complex cprojf
(
float
complex z
)
{
if
(
isinf
(
crealf
(
z
))
||
isinf
(
cimagf
(
z
)))
return
CMPLXF
(
INFINITY
,
copysignf
(
0.0
,
cimagf
(
z
)));
return
z
;
}