|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 03/28] softfloat: Move uint_to_float to softfloat-parts.c.inc |
Date: | Wed, 2 Jun 2021 09:28:00 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 6/2/21 4:31 AM, Alex Bennée wrote:
+ scale = MIN(MAX(scale, -0x10000), 0x10000);here but it does seem weird to have an arbitrary limit here+ p->cls = float_class_normal; + p->exp = DECOMPOSED_BINARY_POINT - shift + scale;where it's really a limit on fmt->exp_max. Are we just limiting it to something sane and relying on the eventual repack to detect and overflow condition?
Yep. This is before and after, mind. r~
[Prev in Thread] | Current Thread | [Next in Thread] |