aboutsummaryrefslogtreecommitdiff
path: root/lib/msun
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2015-06-15 20:47:26 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2015-06-15 20:47:26 +0000
commit65c323f2acb531fdc7a380af88f3ac0c8e435c02 (patch)
treef039efd27a87de042eb1cb47e27259538dbff3f1 /lib/msun
parent68b433d79070ca1cb0631725df3c4be825f58a15 (diff)
downloadsrc-65c323f2acb531fdc7a380af88f3ac0c8e435c02.tar.gz
src-65c323f2acb531fdc7a380af88f3ac0c8e435c02.zip
Follow up to r284427: fix NaN mixing for ctanhf too.
Notes
Notes: svn path=/head/; revision=284428
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/src/s_ctanhf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/msun/src/s_ctanhf.c b/lib/msun/src/s_ctanhf.c
index 6f3be9768c12..520bf77d6d5c 100644
--- a/lib/msun/src/s_ctanhf.c
+++ b/lib/msun/src/s_ctanhf.c
@@ -51,7 +51,8 @@ ctanhf(float complex z)
if (ix >= 0x7f800000) {
if (ix & 0x7fffff)
- return (CMPLXF(x, (y == 0 ? y : x * y)));
+ return (CMPLXF((x + 0) * (y + 0),
+ y == 0 ? y : (x + 0) * (y + 0)));
SET_FLOAT_WORD(x, hx - 0x40000000);
return (CMPLXF(x,
copysignf(0, isinf(y) ? y : sinf(y) * cosf(y))));