I\'m looking for the most efficient way to calculate the minimum number of bytes needed to store an integer without losing precision.
e.g. int: 10 = 1 byte
there are lots of great recipes for stuff like this over at Sean Anderson's "Bit Twiddling Hacks" page.