Re: [Qemu-devel] [PATCH] softfloat: Fix factor 2 error for scalbn on denormal inputs

2013-12-20 Thread Peter Maydell
On 20 December 2013 17:34, Richard Henderson wrote: > On 12/19/2013 01:57 PM, Peter Maydell wrote: >> If the input to float*_scalbn() is denormal then it represents >> a number 0.[mantissabits] * 2^(1-exponentbias) (and the actual >> exponent field is all zeroes). This means that when we convert >

Re: [Qemu-devel] [PATCH] softfloat: Fix factor 2 error for scalbn on denormal inputs

2013-12-20 Thread Richard Henderson
On 12/19/2013 01:57 PM, Peter Maydell wrote: > If the input to float*_scalbn() is denormal then it represents > a number 0.[mantissabits] * 2^(1-exponentbias) (and the actual > exponent field is all zeroes). This means that when we convert > it to our unpacked encoding the unpacked exponent must be

[Qemu-devel] [PATCH] softfloat: Fix factor 2 error for scalbn on denormal inputs

2013-12-19 Thread Peter Maydell
If the input to float*_scalbn() is denormal then it represents a number 0.[mantissabits] * 2^(1-exponentbias) (and the actual exponent field is all zeroes). This means that when we convert it to our unpacked encoding the unpacked exponent must be one greater than for a normal number, which represen