Re: Long long arithmetic

Steve Dodd (steved@loth.demon.co.uk)
Fri, 9 Jun 2000 22:48:30 +0100


On Fri, Jun 09, 2000 at 12:55:03PM +0200, almesber@lrc.di.epfl.ch wrote:
> Alan Cox wrote:

> > But things like the x86 its good to have to think
> > about stuff like long long because it reminds you that you are writing
> > expensive to execute code and should maybe take some time to work out
> > a better solution
>
> Like coding the mess in assembler (see "divl" in drivers/atm/zatm.c)
> or maybe write a "portable" but very very slow version in C :-(

We do have an asm/div64.h ... I've not tried it but I assume it works :)

-
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/