bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *printf: support for 'long double' number output


From: Bruno Haible
Subject: Re: *printf: support for 'long double' number output
Date: Fri, 18 May 2007 22:23:45 +0200
User-agent: KMail/1.5.4

Daniel Jacobowitz wrote:
> Gosh, that's a huge amount of scary code

You are welcome to proofread it. I would be delighted.

> (actually from GMP?)

Only the naming of the base type comes from GMP. The 'divide' function is
taken from CLN. The other functions are straightforward coding.

> Shouldn't you at least write in the documentation that the conversion
> may be unusably slow?  I know I wouldn't use this in GDB with user
> input if it might take all year; that's hardly more useful.

I wouldn't say that is it "unusably slow". In the cases of a small mantissa
and small execution time it is at most ca. 10 times slower as glibc, and in
the cases where really much time can be consumed, it is hardly slower than
glibc:

                                 glibc          gnulib

"%Lf" 1.8234723432e3000L         16.8 msec      17.0 msec
"%Le" 1.8234723432e3000L          0.33 msec      3.1 msec
"%Le" 1.8234723432e-3000L         0.24 msec      1.61 msec

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]