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

"John Whaley" <joewhaley@hotmail.com>
3 Jun 2001 17:03:04 -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)
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)
Re: Emulating a 64-bit long with only 32 bits: code anyone? marcov@toad.stack.nl (2001-06-08)
Re: Emulating a 64-bit long with only 32 bits: code anyone? Klaus.Bergdolt@gmx.de (2001-06-10)
Re: Emulating a 64-bit long with only 32 bits: code anyone? walter@nospamm-digitalmars.com (walter) (2001-06-14)
| List of all articles for this month |
From: "John Whaley" <joewhaley@hotmail.com>
Newsgroups: comp.compilers
Date: 3 Jun 2001 17:03:04 -0400
Organization: Compilers Central
References: 01-05-087
Keywords: arithmetic
Posted-Date: 03 Jun 2001 17:03:04 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


The open-source joeq project (http://joeq.sourceforge.net) includes
100% Java code to perform various operations on both signed and
unsigned 32/64-bit integers, using only the default (signed) 32-bit
integer type. It's not fast, but it should work correctly as a
drop-in replacement for Java 64-bit arithmetic.


John Whaley
joewhaley@sourceforge.net


Post a followup to this message

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