[Bug math/13824] exp2l(small_integer) produces rounding errors
bruno at clisp dot org
sourceware-bugzilla@sourceware.org
Fri Mar 9 01:25:00 GMT 2012
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.
More information about the Glibc-bugs
mailing list