[Bug 294692] lib/msun: Replaced manual checks with isnan()

[email protected] Wed, 22 Apr 2026 17:11:15 +0000
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D294692

Robert Clausecker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open

--- Comment #3 from Robert Clausecker <[email protected]> ---
The change in nexttoward() looks dubious.

-       if(((ix>=3D0x7ff00000)&&((ix-0x7ff00000)|lx)!=3D0) ||
-           (uy.bits.exp =3D=3D 0x7fff &&
-            ((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl) !=3D 0))
+       if(isnan(x) || isnan(y))

The former is not a NaN check on x and y.  It seems more complex than that.=
=20
Same for the float and long double versions.

--=20
You are receiving this mail because:
You are the assignee for the bug.=