That's code I copied from /vg/, I don't really understand what he's doing with the bit operations there.