This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/13824] exp2l(small_integer) produces rounding errors


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]