News for hackers. Stuff that matters.
Re:Smuggling Data in Pointers by ot on Monday November 14, 2011 @03:40AM (#3233351)
This technique is commonly called "tagged pointer"

http://en.wikipedia.org/wiki/Tagged_pointer

They are commonly used in interpreter implementations to distinguish between pointers and integers (if the LSB is 0 then the value is a pointer, otherwise (v >> 1) is an integer value)

Re:Smuggling Data in Pointers by sb on Monday November 14, 2011 @12:15PM (#3234763)
Just for the record and to provide additional references, the technique of reusing a pointer for integer representation is rather old, for example fixnums refer to the same technique in Lisp implementation, IIRC, in Smalltalk this refers to SmallIntegers.