[PATCH] libm: Fixes scalbnf rounding up to minimum magnitude.
Corinna Vinschen
corinna@vinschen.de
Tue Mar 17 15:46:03 GMT 2026
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
More information about the Newlib
mailing list