Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2021 18:13:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253313] lib/msun: hypotl(3) mishandles subnormal numbers
Message-ID:  <bug-253313-227-kqAp5ZoiKZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253313-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253313-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253313

--- Comment #9 from commit-hook@FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dbe49cd3ec6a53aa6b0b5c5635202dd92b=
caacfc6

commit be49cd3ec6a53aa6b0b5c5635202dd92bcaacfc6
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-02-10 22:28:43 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-02-18 18:10:32 +0000

    Fix incorrect hypotl(3) result with subnormal numbers

    This adjusts the factor used to scale the subnormal numbers, so it
    becomes the right value after adjusting its exponent. Thanks to Steve
    Kargl for finding the most elegant fix.

    Also enable the hypot tests, and add a test case for this bug.

    PR:             253313

    (cherry picked from commit d3338f3355a612cf385632291f46c5777bba8d18)

    Fix lib/msun/test builds on platforms without 80-bit long doubles

    After d3338f3355a612cf385632291f46c5777bba8d18, the lib/msun test case
    'hypotl_near_underflow' would fail to compile on platforms where long
    doubles weren't 80 bit, like on x86. Disable this particular test on
    such platforms for now.

    PR:             253313

    (cherry picked from commit 25120662284466ecef976df8f86e97bafdedf991)

 contrib/netbsd-tests/lib/libm/t_hypot.c | 24 ++++++++++++++++++++++++
 lib/msun/src/e_hypotl.c                 |  2 +-
 lib/msun/tests/Makefile                 |  1 +
 3 files changed, 26 insertions(+), 1 deletion(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253313-227-kqAp5ZoiKZ>