Programmatically check fixnum size

Wikibook for Common Lisp says fixnums are guaranteed to be able to store integer values ​​in [-2 15 ; 2 15 -1] and that it depends on the implementation. *features*can tell me that the host is 32 or 64 bit, but fixnum in Lisp does not cover all 32/64 bits . Is there a way to programmatically check what size fixnum is in a CL implementation?

+3
source share
1 answer

(integer-length most-negative-fixnum) will tell you.

+9
source

All Articles