Date: Mon, 15 Jun 2015 20:47:26 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284428 - head/lib/msun/src Message-ID: <201506152047.t5FKlQ4I062963@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Mon Jun 15 20:47:26 2015 New Revision: 284428 URL: https://svnweb.freebsd.org/changeset/base/284428 Log: Follow up to r284427: fix NaN mixing for ctanhf too. Modified: head/lib/msun/src/s_ctanhf.c Modified: head/lib/msun/src/s_ctanhf.c ============================================================================== --- head/lib/msun/src/s_ctanhf.c Mon Jun 15 20:40:44 2015 (r284427) +++ head/lib/msun/src/s_ctanhf.c Mon Jun 15 20:47:26 2015 (r284428) @@ -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))));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506152047.t5FKlQ4I062963>