Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以解释为什么加法运算比乘法运算快吗?
例如,如果我们需要将 25 乘以 50
编译器会将其转换为添加的 for 循环吗?
乘法是一个更复杂的过程,需要更多的硅片作为乘法器电路或查找表,以达到与加法相同的性能水平。
如果处理器已经有乘法指令,大多数处理器都有。