Re: Long long arithmetic

From: Steve Dodd (steved@loth.demon.co.uk)
Date: Fri Jun 09 2000 - 16:48:30 EST


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/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:21 EST