I\'m trying to optimize some bit packing and unpacking routines. In order to do the packing I need to calculate the number of bits needed to store integer values. Here is th
number_of_bits = log2(integer_number)
rounded to the higher integer.