Index of first byte having its MSB set

后端 未结 0 919
南方客
南方客 2020-12-19 16:37

I have eight 8-bit values stored in a 64-bit integer. The MSB of each byte can either be 1 or 0, and the rest of their bits are all 0. Example:

MSB 10000000 00000000

相关标签:
回答
  • 消灭零回复
提交回复
热议问题