diff options
author | tijl <tijl@FreeBSD.org> | 2015-06-15 20:47:26 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2015-06-15 20:47:26 +0000 |
commit | 40b74694d51bc8b396194c2927a04e5abde6246e (patch) | |
tree | f039efd27a87de042eb1cb47e27259538dbff3f1 /lib/msun | |
parent | d8479224d30030798403a3965c261900d8599cd1 (diff) | |
download | FreeBSD-src-40b74694d51bc8b396194c2927a04e5abde6246e.zip FreeBSD-src-40b74694d51bc8b396194c2927a04e5abde6246e.tar.gz |
Follow up to r284427: fix NaN mixing for ctanhf too.
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/src/s_ctanhf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/msun/src/s_ctanhf.c b/lib/msun/src/s_ctanhf.c index 6f3be97..520bf77 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)))); |