开发者

Programmatically check fixnum size

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 impl开发者_如何学Goementation 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜