Re: declare 64 bit integers?
- From: David Lichteblau <usenet-2006@xxxxxxxxxxxxxx>
- Date: 29 Sep 2007 11:50:48 GMT
On 2007-09-28, jrwats@xxxxxxxxx <jrwats@xxxxxxxxx> wrote:
I once wrote such a contrib for SBCL implementing "long long"-style
inline (signed-byte 64) arithmetic on x86.
SBCL's register allocation is not designed for pairing of arbitrary
registers, but it was possible to make it work with minimal effort by
only pairing registers that are adjacent (according to the compiler's
idea of how the registers are numbered).
How in the world do I go about doing that?
Well, my solution is for SBCL, so it does not help you with LispWorks
(or whatever implementation you are on). But you can find it in my SBCL
fork on repo.or.cz. Use (require :sb-regpair) to load it, or see the
sources in contrib/sb-regpair/.
Other than that, I can only second the recommendation to use 64 bit
hardware together with an implementation like SBCL that supports
both untagged, inline arithmetic in general and modular arithmetic in
particular.
.
- References:
- declare 64 bit integers?
- From: jrwats
- Re: declare 64 bit integers?
- From: Alex Mizrahi
- Re: declare 64 bit integers?
- From: David Lichteblau
- Re: declare 64 bit integers?
- From: jrwats
- declare 64 bit integers?
- Prev by Date: Re: declare 64 bit integers?
- Next by Date: Re: declare 64 bit integers?
- Previous by thread: Re: declare 64 bit integers?
- Next by thread: Re: declare 64 bit integers?
- Index(es):
Relevant Pages
|