Re: [PATCH] libm: Fixes scalbnf rounding up to minimum magnitude.

Corinna Vinschen <[email protected]> Tue, 17 Mar 2026 16:46:03 +0100
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Mar 11 23:59, Eric Bavier wrote:
> Previously, results that should have rounded up to the minimum
> magnitude floating-point value would instead return zero, in
> round-to-nearest-even mode.  E.g. scalbnf(0x1.000002p0,-150) with
> subnormal support of scalbnf(0x1.000002p0,-127) without.
> 
> * newlib/libm/common/fdlibm.h (FLT_SMALLEST_EXP): Adjust down by one.
> Adjust documentation.
> ---
>  newlib/libm/common/fdlibm.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Pushed.

Thanks,
Corinna