[Bug 253313] lib/msun: hypotl(3) mishandles subnormal numbers
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Feb 10 22:31:04 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253313
--- Comment #3 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=d3338f3355a612cf385632291f46c5777bba8d18
commit d3338f3355a612cf385632291f46c5777bba8d18
Author: Dimitry Andric <dim at FreeBSD.org>
AuthorDate: 2021-02-10 22:28:43 +0000
Commit: Dimitry Andric <dim at FreeBSD.org>
CommitDate: 2021-02-10 22:28:43 +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
MFC after: 1 week
contrib/netbsd-tests/lib/libm/t_hypot.c | 20 ++++++++++++++++++++
lib/msun/src/e_hypotl.c | 2 +-
lib/msun/tests/Makefile | 1 +
3 files changed, 22 insertions(+), 1 deletion(-)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list