Emulating a 64-bit long with only 32 bits: code anyone?

Sean Luke <seanl@SPAM.jifsan.IS.cs.EVIL.umd.edu>
30 May 2001 00:21:12 -0400

          From comp.compilers

Related articles
Emulating a 64-bit long with only 32 bits: code anyone? seanl@SPAM.jifsan.IS.cs.EVIL.umd.edu (Sean Luke) (2001-05-30)
Re: Emulating a 64-bit long with only 32 bits: code anyone? marcov@toad.stack.nl (2001-05-31)
SV: Emulating a 64-bit long with only 32 bits: code anyone? rhq093s@tninet.se (Dan Andersson) (2001-05-31)
Re: Emulating a 64-bit long with only 32 bits: code anyone? gneuner@dyn.com (2001-05-31)
Re: Emulating a 64-bit long with only 32 bits: code anyone? joewhaley@hotmail.com (John Whaley) (2001-06-03)
Re: Emulating a 64-bit long with only 32 bits: code anyone? Timothy_S_Coffey@bankone.com (2001-06-07)
Re: Emulating a 64-bit long with only 32 bits: code anyone? benji@wohnheim.uni-ulm.de (Markus Ackermann) (2001-06-08)
[3 later articles]
| List of all articles for this month |

From: Sean Luke <seanl@SPAM.jifsan.IS.cs.EVIL.umd.edu>
Newsgroups: comp.compilers
Date: 30 May 2001 00:21:12 -0400
Organization: U of Maryland, College Park, MD 20742
Keywords: arithmetic, question
Posted-Date: 30 May 2001 00:21:12 EDT

My apologies if this is a FAQ. I'm designing a Java system for a machine
that has only 32-bit longs (though it does have 64-bit doubles). I'm
hoping that someone may know where you can find open source for code which
manipulates 64-bit longs (multiply, divide, subtract, add, shift, bitwise
and logical operations, etc.) using only 32 bits, using a structure like


struct _LONG { int hi, int lo }


... as a "long" representation. I believe that Sun's KVM java code has
stuff like this, but unfortunately Sun's license is too restrictive. ;-(
Can anyone help here?


Sean Luke


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.