Wikibook for Common Lisp says that fixnums are guaranteed to be able to hold integer values in [-215; 215-1] range and that it is implementation dependent. *features*
can tell me if the host is 32 or 64-bit but a fixnum in Lisp does not cover the whole 32/64 bits. Is there a way to programmatically check what is the size of a fixnum in a CL implementation?
Asked
Active
Viewed 539 times
3
1 Answers
9
(integer-length most-negative-fixnum)
will tell you.

Xach
- 11,774
- 37
- 38
-
Thanks. Clozure CL on my 64-bit openSUSE shows 60, so 4 bits are reserved for flags. – FilipK Mar 18 '11 at 10:56