& 位运算总结

一、& 与

   a & -a : 可以计算出 a 的二进制形式的第一个 1 出现的位置。

  eg: 6 & -6 = 0110 & 1010 = 0010

原文地址:https://www.cnblogs.com/skillking/p/9989295.html