projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: avoid runtime conversions of floating-point constants
[musl]
/
src
/
complex
/
cacosf.c
diff --git
a/src/complex/cacosf.c
b/src/complex/cacosf.c
index
563766e
..
ed8acf0
100644
(file)
--- a/
src/complex/cacosf.c
+++ b/
src/complex/cacosf.c
@@
-1,9
+1,11
@@
-#include "
libm
.h"
+#include "
complex_impl
.h"
// FIXME
// FIXME
+static const float float_pi_2 = M_PI_2;
+
float complex cacosf(float complex z)
{
z = casinf(z);
float complex cacosf(float complex z)
{
z = casinf(z);
- return
cpackf((float)M_PI
_2 - crealf(z), -cimagf(z));
+ return
CMPLXF(float_pi
_2 - crealf(z), -cimagf(z));
}
}