42

编程中用移位运算替代乘除法会不会有问题?

 5 years ago
source link: https://www.v2ex.com/t/469591
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
程序员 - @jssyxzy - 因为移位运算实际上有算术移位,逻辑移位,循环移位; 又有有符号数,无符号数; 不同编程语言有可能实现不同。 请问这里面有没有什么坑?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK