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))));
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to