about summary refs log tree commit diff
path: root/src/complex/casinf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/casinf.c')
-rw-r--r--src/complex/casinf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/complex/casinf.c b/src/complex/casinf.c
index cb9863f6..93f0e335 100644
--- a/src/complex/casinf.c
+++ b/src/complex/casinf.c
@@ -9,6 +9,6 @@ float complex casinf(float complex z)
 
 	x = crealf(z);
 	y = cimagf(z);
-	w = cpackf(1.0 - (x - y)*(x + y), -2.0*x*y);
-	return clogf(cpackf(-y, x) + csqrtf(w));
+	w = CMPLXF(1.0 - (x - y)*(x + y), -2.0*x*y);
+	return clogf(CMPLXF(-y, x) + csqrtf(w));
 }