]> git.proxmox.com Git - qemu.git/commit
softfloat: fix floatx80 handling of NaN
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 20 Apr 2011 11:04:22 +0000 (13:04 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 25 Apr 2011 09:18:32 +0000 (11:18 +0200)
commite2f422047b6fd04c28630f80ab1161dbce07c6b7
tree9e8d1773ccd9f59f866f8d27e19dd28d8885d0e4
parentda26fdc3145fc990762133beb8ad6bd67742a147
softfloat: fix floatx80 handling of NaN

The floatx80 format uses an explicit bit that should be taken into account
when converting to and from commonNaN format.

When converting to commonNaN, the explicit bit should be removed if it is
a 1, and a default NaN should be used if it is 0.

When converting from commonNan, the explicit bit should be added.

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