News for hackers. Stuff that matters.
Re:How to save multiple numbers into one byte by mamisp on Friday December 02, 2016 @07:17PM (#13093419)
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.

There are no comments on this comment yet.