Commit dadd71a7777db0431149d3dee674f92c7d9f7bed
1 parent
9326a95c
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
Showing
1 changed file
with
1 additions
and
1 deletions
fpu/softfloat.h
... | ... | @@ -283,7 +283,7 @@ INLINE float32 float32_chs(float32 a) |
283 | 283 | |
284 | 284 | INLINE int float32_is_infinity(float32 a) |
285 | 285 | { |
286 | - return (float32_val(a) & 0x7fffffff) == 0x7ff80000; | |
286 | + return (float32_val(a) & 0x7fffffff) == 0x7f800000; | |
287 | 287 | } |
288 | 288 | |
289 | 289 | INLINE int float32_is_neg(float32 a) | ... | ... |