qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 7/8] softfloat: Support halving the result of mu


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 7/8] softfloat: Support halving the result of muladd operation
Date: Mon, 10 Feb 2014 21:31:52 +0000

On 10 February 2014 20:15, Richard Henderson <address@hidden> wrote:
> On 02/07/2014 01:49 PM, Peter Maydell wrote:
>>          /* Zero plus something non-zero : just return the something */
>> +        if (flags & float_muladd_halve_result) {
>> +            if (cExp == 0) {
>> +                shift32RightJamming(cSig, 1, &cSig);
>> +            } else if (cExp == 1) {
>> +                shift32RightJamming(cSig, 1, &cSig);
>> +                cSig |= (1 << 22);
>> +                cExp = 0;
>> +            } else {
>> +                cExp--;
>> +            }
>
> Surely better to just use roundAndPackFloat for this case.  Looks to me that
> you're missing inexact and underflow exceptions at least.

Good point.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]