&运算与取余

a & (b-1) 等价与 a % b,且b需为2^n
举例:一个数和3进行与运算,就是对4取余.

原文地址:https://www.cnblogs.com/huangj/p/14778127.html