Date: Sun, 30 Mar 2008 17:28:27 +0000 (UTC) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/msun/src e_hypot.c e_hypotf.c Message-ID: <200803301728.m2UHSRF2005496@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 2008-03-30 17:28:27 UTC FreeBSD src repository Modified files: lib/msun/src e_hypot.c e_hypotf.c Log: Use the expression fabs(x+0.0)-fabs(y+0.0) instead of fabs(x+0.0)+fabs(y+0.0) when mixing NaNs. This improves consistency of the result by making it harder for the compiler to reorder the operands. (FP addition is not necessarily commutative because the order of operands makes a difference on some machines iff the operands are both NaNs.) Revision Changes Path 1.11 +1 -1 src/lib/msun/src/e_hypot.c 1.12 +1 -1 src/lib/msun/src/e_hypotf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803301728.m2UHSRF2005496>