Re: Linux 3.1-rc9

From: Ingo Molnar
Date: Tue Oct 18 2011 - 02:02:48 EST



* H. Peter Anvin <hpa@xxxxxxxxx> wrote:

> On 10/17/2011 02:39 PM, Ingo Molnar wrote:
> >>
> >> We can do much better than that with reciprocal multiplication.
> >
> > Yes, 2^64/1e9 is the reciprocal.
> >
>
> What I mean is that it's pretty easy to work it so it doesn't have
> the errors. [...]

Yeah - the second pseudocode i gave will do that with no errors.

> [...] We have 32*32 = 64 multiplication on all 32-bit platforms I'm
> 99.9% sure.

Good.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/