[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Difference between a+b and bit32.band(a+b)
- From: Duncan Cross <duncan.cross@...>
- Date: Mon, 12 Sep 2011 19:49:38 +0100
On Mon, Sep 12, 2011 at 4:55 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> After too many cycles,
> the accumulation of overflows ends up causing problems (e.g., loosing
> bits).
True. By my calculation, you can safely add about a million 32-bit
integers together before you risk losing bits in the worst-case
scenario.
-Duncan