Re: Long long arithmetic

From: Bill Huey (billh@cx739861-a.dt1.sdca.home.com)
Date: Thu Jun 08 2000 - 18:51:42 EST


> Followup to: <39400F10.36D1DDBF@quark.vpplus.com>
> By author: Brian Gerst <bgerst@quark.vpplus.com>
> In newsgroup: linux.dev.kernel
> > GCC needs library functions for some 64-bit operations on 32-bit
> > crchitectures, which are not present in the kernel. 64-bit division is
> > 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.
>
> -hpa

FreeBSD does something like this in their 64bit FS code. Math operations
directly call a function to do 64bit math, add, div, etc...

bill

-
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