about summary refs log tree commit diff
path: root/src/complex/cacosf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cacosf.c')
-rw-r--r--src/complex/cacosf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/complex/cacosf.c b/src/complex/cacosf.c
index 2e048540..ed8acf0f 100644
--- a/src/complex/cacosf.c
+++ b/src/complex/cacosf.c
@@ -2,8 +2,10 @@
 
 // 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));
 }