]> sourceware.org Git - glibc.git/commit
math: Fix incorrect results of exp10m1f with some GCC versions master
authorFlorian Weimer <fweimer@redhat.com>
Wed, 6 Nov 2024 15:09:05 +0000 (16:09 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 6 Nov 2024 15:09:05 +0000 (16:09 +0100)
commitba60be873554ecd141b55ea82647714933c0dbd4
treec5e684e2e255634d422c0072cd76ba7f7744d9de
parentff254cabd64bec6b6810ee1e1f0c901d273efaca
math: Fix incorrect results of exp10m1f with some GCC versions

On GCC 11 (x86-64), the previous code produced test failures like
this one:

Failure: Test: exp10m1_towardzero (-0x1.1p+4)
Result:
 is:         -1.00000000e+00  -0x1.000000p+0
 should be:  -9.99999940e-01  -0x1.fffffep-1
 difference:  5.96046447e-08   0x1.000000p-24
 ulp       :  1.0000
 max.ulp   :  0.0000

Apply a similar fix to exp2m1f.

Co-authored-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/ieee754/flt-32/s_exp10m1f.c
sysdeps/ieee754/flt-32/s_exp2m1f.c
This page took 0.046374 seconds and 5 git commands to generate.