Messages in this thread | | | Subject | Re: 64 bit arithmetic in the kernel | Date | Mon, 12 Jul 1999 20:59:30 -0400 | From | Michael Richardson <> |
| |
>>>>> "Richard" == Richard B Johnson <root@chaos.analogic.com> writes: Richard> On Mon, 12 Jul 1999, Michael Richardson wrote:
>> >> 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. >>
Richard> Use inline asm. In Intel, you put the high long-word into edx, Richard> the low long-word into eax, and "div" either by an immediate or Richard> something in, say
Uh, that's real portable.
:!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster<tm> Personal: <A HREF="http://www.sandelman.ottawa.on.ca/People/Michael_Richardson/Bio.html">mcr@sandelman.ottawa.on.ca</A>. PGP key available. Corporate: <A HREF="mailto:mcr@solidum.com">mcr@solidum.com</A>.
- 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/
| |