[Bug 227179] powl has lower than advertised precision

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Apr 2022 19:12:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227179

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org

--- Comment #4 from Dimitry Andric <dim@FreeBSD.org> ---
The functions were updated via bug 229876, originally submitted by Steve.

There aren't any specific test cases for the mentioned precision issues though.

That said, on my 14.0-CURRENT as of 2022-03-31, I see:

% ./pow-O0
pow(integer{2}, 4.5l) -> 22.627416997969520780220609168509
std::pow(2.l, 4.5l)   -> 22.627416997969520780220609168509

% ./pow-O3
pow(integer{2}, 4.5l) -> 22.627416997969520780220609168509
std::pow(2.l, 4.5l)   -> 22.627416997969520780220609168509

In all cases, it eventually calls <powl@plt>.

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