Re: 64 bit divide/mod in 2.4.0-test5

Linus Torvalds (torvalds@transmeta.com)
Sun, 6 Aug 2000 13:04:46 -0700 (PDT)


On Sun, 6 Aug 2000, Jamie Lokier wrote:
>
> I've never tried that algorithm but I would guess it's faster than long
> division.

Quite possible. I would not be adverse to doing this: the do_div() thing
is there mainly because it was much easier to move the existing code-base
over, and the original vsprintf used division.

If somebody wants to write the code...

Linus

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