summaryrefslogtreecommitdiff
path: root/src/complex/cacosf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cacosf.c')
-rw-r--r--src/complex/cacosf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/complex/cacosf.c b/src/complex/cacosf.c
index 11852659..ed8acf0f 100644
--- a/src/complex/cacosf.c
+++ b/src/complex/cacosf.c
@@ -1,9 +1,11 @@
-#include "libm.h"
+#include "complex_impl.h"
// FIXME
+static const float float_pi_2 = M_PI_2;
+
float complex cacosf(float complex z)
{
z = casinf(z);
- return CMPLXF((float)M_PI_2 - crealf(z), -cimagf(z));
+ return CMPLXF(float_pi_2 - crealf(z), -cimagf(z));
}