logoalt Hacker News

Emacs internals: Deconstructing Lisp_Object in C (Part 2)

67 pointsby thecloudletlast Thursday at 10:23 AM1 commentview on HN

Comments

praptaktoday at 7:01 AM

SBCL uses a single zero bit to tag integers. This trick means the representation of n is just 2n, so you can add the values directly without any decoding.

It obviously also means that all the other tag values have to use 1 as the last bit.

alex_dev42today at 6:19 AM

[flagged]