Re: Long long arithmetic

From: H. Peter Anvin (hpa@transmeta.com)
Date: Thu Jun 08 2000 - 18:43:45 EST


Alan Cox wrote:
>
> > > a common example of this. If possible, limit your code to using adds
> > > and shifts when working with long longs.
> > >
> >
> > Is there any reason we don't link the kernel with libgcc? libgcc
> > doesn't do system calls, so it should be safe to link the kernel with.
>
> On some platforms we do. 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
>

There seems to be enough cases were you would really like to do this...
we get this request often enough that I think it may be a good idea
after all.

        -hpa

-
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:16 EST