repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix the use of uninitialized value in regcomp
[musl.git]
/
src
/
complex
/
cprojf.c
blob
653be5e87cfcbf2d64f297fe21bed06423aab9e3
1
#include
"libm.h"
2
3
float complex
cprojf
(
float complex
z
)
4
{
5
if
(
isinf
(
crealf
(
z
)) ||
isinf
(
cimagf
(
z
)))
6
return
CMPLXF
(
INFINITY
,
copysignf
(
0.0
,
crealf
(
z
)));
7
return
z
;
8
}