cvs commit: src/lib/msun/src e_hypot.c e_hypotf.c
Bruce Evans
bde at FreeBSD.org
Sun Mar 30 10:28:27 PDT 2008
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
More information about the cvs-src
mailing list