lkml.org 
[lkml]   [1999]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 64 bit arithmetic in the kernel
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.045 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site