位运算加减乘除

加法:

carry = 进位 = AND

xor = remains.


减法:

The~operator flipsallthe bits; the1s (4 of them) become0s, and the0s (N-4 of them) become1s


乘法:递归


你可能感兴趣的:(位运算加减乘除)