guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stay in fixnum range?


From: Andy Wingo
Subject: Re: How to stay in fixnum range?
Date: Wed, 21 Jan 2009 16:00:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

On Mon 19 Jan 2009 22:02, "Panicz Maciej Godek" <address@hidden> writes:

> The problem may appear when I add some number to the
> return value of get-internal-real-time -- what if, during addition,
> the scheme fixnum limit is exceeded and the variable becomes
> a bignum?

You could (logand (get-internal-real-time) most-positive-fixnum)

Have you determined when this could happen? most-positive-fixnum can be
quite large on 64-bit machines. I guess you only get 64 days without
bignums on 32-bit machines.

Andy
-- 
http://wingolog.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]