Emacs internals: Deconstructing Lisp_Object in C (Part 2)
70 points
2 days ago
| 1 comment
| thecloudlet.github.io
| HN
praptak
2 hours ago
[-]
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.

reply
thecloudlet
1 minute ago
[-]
That’s so cool. I did not know that.
reply