[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] softfloat: fix mask in extractFloat32Exp
From: |
Alexander Aring |
Subject: |
Re: [Qemu-trivial] [PATCH] softfloat: fix mask in extractFloat32Exp |
Date: |
Fri, 5 Apr 2013 20:26:18 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
On Fri, Apr 05, 2013 at 02:52:23PM +0200, Stefan Hajnoczi wrote:
>
> This patch seems wrong because the fraction is 23 bits, exponent is 8
> bits, and sign is 1 bit.
>
> IEEE 754 Binary32 representation:
> SEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFF
> 3 2 0
> 0 3
>
> http://en.wikipedia.org/wiki/Binary32
>
> Since the exponent is *8* bits, 0xFF is correct. The sign bit is 0x100
> after >>23.
>
ahh, I see it! Sorry for the noise :)
Alex