我知道对于带符号的32位或64位整数-x并~x + 1返回相同的结果.
-x
~x + 1
但我有几个问题:
performance assembly compilation
assembly ×1
compilation ×1
performance ×1