Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
5c43e1dbc8716536551d392f834c6752a3e82cec
/
.
/
src
/
complex
/
casinf.c
blob: 93f0e335092b02241445a50461c70e88b6295594 [
file
] [
log
] [
blame
]
#include
"libm.h"
// FIXME
float
complex casinf
(
float
complex z
)
{
float
complex w
;
float
x
,
y
;
x
=
crealf
(
z
);
y
=
cimagf
(
z
);
w
=
CMPLXF
(
1.0
-
(
x
-
y
)*(
x
+
y
),
-
2.0
*
x
*
y
);
return
clogf
(
CMPLXF
(-
y
,
x
)
+
csqrtf
(
w
));
}