位运算加减乘除
2017-10-10 本文已影响0人
98Future
加法:
carry = 进位 = AND
xor = remains.
![](https://img.haomeiwen.com/i6560153/4084eee1f59a5f9c.png)
减法:
The~operator flipsallthe bits; the1s (4 of them) become0s, and the0s (N-4 of them) become1s
![](https://img.haomeiwen.com/i6560153/8b72ba8d7a883198.png)
乘法:递归
![](https://img.haomeiwen.com/i6560153/1882f0393db20556.png)
加法:
carry = 进位 = AND
xor = remains.
减法:
The~operator flipsallthe bits; the1s (4 of them) become0s, and the0s (N-4 of them) become1s
乘法:递归