|
From: | Dan Muresan |
Subject: | [Chicken-users] 32 bit integers? |
Date: | Tue, 22 May 2007 20:50:07 +0300 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 |
Hi, I've just realized that "normal" Chicken integers are 31 bits wide: csi> (inexact->exact 1073741824) [ nasty error ] csi> (inexact->exact 1073741823) 1073741823 csi> (/ (log 1073741824) (log 2)) 30.0Wider integers are promoted to flonums. This is somewhat undesirable when interfacing to C libraries.
Is there a native-integer type (like in OCaml)? Since the SRFI-4 vectors have exact 8, 16 and 32-bit integer elements, it might make sense to have native integers too...
Cheers, Dan
[Prev in Thread] | Current Thread | [Next in Thread] |