This is the mail archive of the libc-hacker@sourceware.cygnus.com 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]

Re: pow10


Roland McGrath <roland@frob.com> writes:

> Should we add one?

We have log10, so this is no bad idea.

> I don't know what the deep FP issues might be, but I'm
> assuming we can just do `double pow10(double x) { return pow(10.0, x); }'.

Well, using pow to implement pow10 certainly isn't the final solution
since it is slower and more inprecise than necesary.  But it could be
enough for now.

-- Uli
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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