]> git.proxmox.com Git - qemu.git/commit
softfloat: fix floatx80_is_{quiet,signaling}_nan()
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 17 Jan 2011 18:29:33 +0000 (19:29 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 20 Jan 2011 11:37:20 +0000 (12:37 +0100)
commitde4af5f7928bb68d4e2b576598c245a256fcabbb
tree28f61bf68e68ab04c79f5edc5751cfa31e38de51
parent3a34dfd7f600e235687fece76b8f763362b883b2
softfloat: fix floatx80_is_{quiet,signaling}_nan()

floatx80_is_{quiet,signaling}_nan() functions are incorrectly detecting
the type of NaN, depending on SNAN_BIT_IS_ONE, one of the two is
returning the correct value, and the other true for any kind of NaN.

This patch fixes that by applying the same kind of comparison as for
other float formats, but taking into account the explicit bit.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat-specialize.h