Follow up to r284427: fix NaN mixing for ctanhf too.

This commit is contained in:
Tijl Coosemans 2015-06-15 20:47:26 +00:00
parent 68b433d790
commit 65c323f2ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284428

View File

@ -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))));