This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13824] exp2l(small_integer) produces rounding errors
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 09 Mar 2012 01:24:49 +0000
- Subject: [Bug math/13824] exp2l(small_integer) produces rounding errors
- Auto-submitted: auto-generated
- References: <bug-13824-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13824
--- Comment #2 from Bruno Haible <bruno at clisp dot org> 2012-03-09 01:24:49 UTC ---
(In reply to comment #1)
> a simpler interim fix to the fallback implementation
> would be to make it separate the integer and fractional parts of the input
> and only use __ieee754_expl on M_LN2l * (fractional part)
Exactly. That's also the approach used by the portable gnulib implementation of
exp2l:
<http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/exp2l.c;hb=HEAD>
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.