[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Further 64 bit bits.
From: |
Marius Vollmer |
Subject: |
Re: Further 64 bit bits. |
Date: |
17 Sep 2001 02:36:09 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
Dirk Herrmann <address@hidden> writes:
> On 14 Sep 2001, Marius Vollmer wrote:
>
> > Rob Browning <address@hidden> writes:
> >
> > > With respect to make check, is there any way to ask how many bits are
> > > in a fixnum from the guile level?
> >
> > This
> >
> > (inexact->exact (+ (/ (log (+ most-positive-fixnum 1)) (log 2)) 1))
> >
> > ought to work.
>
> I wonder if from the scheme level it is wise to expect fixnums to be
> implemented this way, i. e. as a number that is represented with n
> bits.
Yes, theoretically, for an unknown implementation. But I'd say that
for our test suite, the above is good enough since we know how our
fixnums are implemented.