aboutsummaryrefslogtreecommitdiff
path: root/src/complex/casinf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-15 08:37:58 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-15 08:37:58 -0500
commit8bb181622222f2ee3462c8b021bcae4fcdbbd37a (patch)
tree166a1be834c8cd5a4c2521d41d7ee506bd8c8e51 /src/complex/casinf.c
parentupdate copyright file for recent contributions (diff)
parentfenv: return FE_TONEAREST in dummy fegetround (diff)
downloadgrovel-8bb181622222f2ee3462c8b021bcae4fcdbbd37a.tar.gz
grovel-8bb181622222f2ee3462c8b021bcae4fcdbbd37a.tar.xz
Merge remote-tracking branch 'nsz/math'
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));
}