diff options
author | bde <bde@FreeBSD.org> | 2008-03-30 17:28:27 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2008-03-30 17:28:27 +0000 |
commit | b06e3a074e790b19403a03d0155466a343805194 (patch) | |
tree | 4b7b91dd6ca950f37e8ffa401e71abf879182368 /games | |
parent | 95436ce20dab5a34ba46373410b96411b1734578 (diff) | |
download | FreeBSD-src-b06e3a074e790b19403a03d0155466a343805194.zip FreeBSD-src-b06e3a074e790b19403a03d0155466a343805194.tar.gz |
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.)
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions