News for hackers. Stuff that matters.
Re:Architecture of Lisp Machines (2008) [pdf] by bitwize on Saturday July 03, 2021 @01:42AM (#27719642)
Oooooh, that is "square root magic constant" levels of dirty.
Re:Architecture of Lisp Machines (2008) [pdf] by pfdietz on Saturday July 03, 2021 @06:04AM (#27720541)
Also, it lets you implement fixnums with zero low order bits. That is, fixnum x is implemented as x << 2 (on 32 bit machines) or x << 3 (on 64 bit machines). With this encoding, addition and subtraction that is known to produce another fixnum can be done with ordinary add/sub instructions.