How to reverse bits of a byte?

前端 未结 8 2351
广开言路
广开言路 2021-02-09 13:09

For example, in PHP, how would I reverse the bits of the byte 11011111 to 11111011?

8条回答
  •  北荒
    北荒 (楼主)
    2021-02-09 13:34

    Try to get this book, there is whole chapter about bits reversion: Hacker's Delight. But please check content first if this suits you.

提交回复
热议问题