|
From: | felix winkelmann |
Subject: | Re: [Chicken-users] most-{positive,negative}-fixnum |
Date: | Wed, 24 May 2006 14:32:05 +0200 |
On 5/23/06, Kon Lovett <address@hidden> wrote:
On May 22, 2006, at 7:14 AM, John Cowan wrote: > I need to determine the most positive and most negative fixnums, > given that Chicken has both 32-bit and 64-bit builds. Can these > be added as constants, or is there some easy way to compute them? In chicken.h see 'C_MOST_POSITIVE_FIXNUM' & 'C_MOST_NEGATIVE_FIXNUM'.
Right, sth like: (define most-positive-fixnum (foreign-value "C_MOST_POSITIVE_FIXNUM" int)) (define most-negative-fixnum (foreign-value "C_MOST_NEGATIVE_FIXNUM" int)) should do the job. (felix)
[Prev in Thread] | Current Thread | [Next in Thread] |