[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 19/22] fpu/softfloat: re-factor scalbn
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] [PATCH v3 19/22] fpu/softfloat: re-factor scalbn |
Date: |
Mon, 29 Jan 2018 11:59:03 +0000 |
User-agent: |
mu4e 1.0-alpha3; emacs 26.0.91 |
Richard Henderson <address@hidden> writes:
> On 01/24/2018 05:13 AM, Alex Bennée wrote:
>> +/* Multiply A by 2 raised to the power N. */
>> +static FloatParts scalbn_decomposed(FloatParts a, int n,
>> + float_status *s)
>> +{
>> + if (a.cls == float_class_normal) {
>> + a.exp += n;
>> + }
>> + return a;
>> +}
>
> ...
>
>> - if ( aExp == 0x7FF ) {
>> - if ( aSig ) {
>> - return propagateFloat64NaN(a, a, status);
>
> This is where we used to raise inexact.
> In the new function we need to handle this as in round_to_int.
Why is the handling in round_canonical not good enough for this?
--
Alex Bennée
- Re: [Qemu-devel] [PATCH v3 11/22] fpu/softfloat: define decompose structures, (continued)
- [Qemu-devel] [PATCH v3 18/22] fpu/softfloat: re-factor int/uint to float, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 20/22] fpu/softfloat: re-factor minmax, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 16/22] fpu/softfloat: re-factor round_to_int, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 21/22] fpu/softfloat: re-factor compare, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 19/22] fpu/softfloat: re-factor scalbn, Alex Bennée, 2018/01/24
[Qemu-devel] [PATCH v3 22/22] fpu/softfloat: re-factor sqrt, Alex Bennée, 2018/01/24
[Qemu-devel] [PATCH v3 15/22] fpu/softfloat: re-factor muladd, Alex Bennée, 2018/01/24
[Qemu-devel] [PATCH v3 17/22] fpu/softfloat: re-factor float to int/uint, Alex Bennée, 2018/01/24
Re: [Qemu-devel] [PATCH v3 00/22] re-factor softfloat and add fp16 functions, no-reply, 2018/01/24
Re: [Qemu-devel] [PATCH v3 00/22] re-factor softfloat and add fp16 functions, Howard Spoelstra, 2018/01/24