摘要: Lesson 3 : Bit Hacks 1. Binary Representaion x + ~x = -1 // 现在所有位均为1,补码均为1时结果为-1 -x = ~x + 1 // 由上式可推出 2. Some Tricks 下面的代码可以通过c实现,别的语言可能无法实现。 2.0 字符运 阅读全文
posted @ 2020-07-06 22:45 wheszza 阅读(49) 评论(0) 推荐(0)