Messages in this thread | | | Subject | Re: 64 bit arithmetic in the kernel | From | Nat Lanza <> | Date | 13 Jul 1999 22:58:18 -0400 |
| |
Michael Richardson <mcr@solidum.com> writes:
> Is there any easy way to get things like the stuff that it > is in libgcc1.a into the Linux kernel? I have need for 64/32 integer divide > (gcc calls __udivdi3). > This is with 2.2.10, on a Lintel box, and I'm using a module. > > I noticed that printk() doesn't have support for 64 bit quantities either.
We got around this by simply linking libgcc into the kernel; it seems to work okay for 64-bit arithmetic.
Also, patching printk so that it supports 64-bit quantities is pretty simple; I have a patch against 2.2.3 for that that I'll clean up and redo for 2.2.10 and then post.
--nat
-- nat lanza --------------------- research programmer, parallel data lab, cmu scs magus@cs.cmu.edu -------------------------------- http://www.cs.cmu.edu/~magus/ there are no whole truths; all truths are half-truths -- alfred north whitehead
- 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/
| |