Re: [PATCH] corrupted free inodes list



On Fri, 22 Dec 2006, Leonard den Ottolander wrote:

Hi Mikulas,

On Wed, 2006-12-20 at 02:15 +0100, Mikulas Patocka wrote:
--- maybe you could change double to "long long" but I'm not sure if it
exists on all machines --- a configure test would probably be needed.

Yes. Using floats for discrete counters is not such a good idea.

It's likely to be slower, but if you don't exceed the precision of the mantissa, you won't lose information.

The general reader, taking into account the comment about "discrete" is likely to assume that you meant information would be lost. Since that's
not the case (for the assumed 48 bits), it's worth clarifying the comment.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



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