Skip to content

Commit

Permalink
fp: fix float32_is_infinity()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aurel32 committed Dec 18, 2008
1 parent 9326a95 commit dadd71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpu/softfloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dadd71a

Please sign in to comment.