I also really liked this page on bitpacking, which also offers a technique to implement them using only math operations.
http://number-none.com/product/Packing%20Integers/index.html
I recently implemented a bitpacker in a game VM that didn't have bitwise operations, and the math-based version worked perfectly.