What is the fastest way to calculate the number of bits needed to store a number

前端 未结 6 1171
暗喜
暗喜 2021-01-12 02:50

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

6条回答
提交回复
热议问题