projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e62ecd9
)
softfloat: fix floatx80_is_infinity()
author
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 20 Apr 2011 11:04:22 +0000
(13:04 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Mon, 25 Apr 2011 09:18:32 +0000
(11:18 +0200)
With floatx80, the explicit bit is set for infinity.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat.h
patch
|
blob
|
history
diff --git
a/fpu/softfloat.h
b/fpu/softfloat.h
index
340f0a9
..
3363128
100644
(file)
--- a/
fpu/softfloat.h
+++ b/
fpu/softfloat.h
@@
-566,7
+566,7
@@
INLINE floatx80 floatx80_chs(floatx80 a)
INLINE int floatx80_is_infinity(floatx80 a)
{
- return (a.high & 0x7fff) == 0x7fff && a.low == 0;
+ return (a.high & 0x7fff) == 0x7fff && a.low == 0
x8000000000000000LL
;
}
INLINE int floatx80_is_neg(floatx80 a)