mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
fp: fix float32_is_infinity()
Thanks to Laurent Desnogues for the hint. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6089 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9326a95c81
commit
dadd71a777
@ -283,7 +283,7 @@ INLINE float32 float32_chs(float32 a)
|
||||
|
||||
INLINE int float32_is_infinity(float32 a)
|
||||
{
|
||||
return (float32_val(a) & 0x7fffffff) == 0x7ff80000;
|
||||
return (float32_val(a) & 0x7fffffff) == 0x7f800000;
|
||||
}
|
||||
|
||||
INLINE int float32_is_neg(float32 a)
|
||||
|
Loading…
Reference in New Issue
Block a user