提交 dadd71a7 编写于 作者: A aurel32

fp: fix float32_is_infinity()

Thanks to Laurent Desnogues for the hint.
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6089 c046a42c-6fe2-441c-8c8c-71466251a162
上级 9326a95c
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册