summaryrefslogtreecommitdiff
path: root/src/complex/ctanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/ctanf.c')
-rw-r--r--src/complex/ctanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/complex/ctanf.c b/src/complex/ctanf.c
index 9bbeb051..009b1921 100644
--- a/src/complex/ctanf.c
+++ b/src/complex/ctanf.c
@@ -2,6 +2,6 @@
float complex ctanf(float complex z)
{
- z = ctanhf(cpackf(-cimagf(z), crealf(z)));
- return cpackf(cimagf(z), -crealf(z));
+ z = ctanhf(CMPLXF(-cimagf(z), crealf(z)));
+ return CMPLXF(cimagf(z), -crealf(z));
}