]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix coding nit in x86amd64g_calculate_FXTRACT.
authorMark Wielaard <mark@klomp.org>
Tue, 28 May 2019 15:20:31 +0000 (17:20 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 28 May 2019 16:11:24 +0000 (18:11 +0200)
commita82b92e2ebfdd84ac953b05f679c67834942062b
tree480e8e65381ab49bc32cc2ef8a0e8eef1fb851b6
parent38cc5478bca0f858dbe69076ce033f8563b5d2e9
Fix coding nit in x86amd64g_calculate_FXTRACT.

The current code "return getExp ? posInf : posInf;" looks like a typo.
But when the argument is positive infinity then both the significand
and the exponent are positive infinity (there is a fxtract testcase that
checks that). So no need to check getExp. Just always return posInf
if arg == posInf, but add a comment explaining why.
VEX/priv/guest_generic_x87.c