Re:How to save multiple numbers into one byte
by inimino on Friday December 02, 2016 @11:31PM
(#13094313)
GP's suggestion is that you use 4 instead of 3. If you have 5 numbers, you multiply them by 4^5, 4^4, etc, and then add them. You waste some fractional bits, but you can do everything with masks and shifts instead of multiplications and divisions by three.
[ Parent
| on HN ]
There are no comments on this comment yet.