Is integer multiplication really done at the same speed as addition on a modern CPU?

后端 未结 11 762
梦谈多话
梦谈多话 2020-12-23 13:31

I hear this statement quite often, that multiplication on modern hardware is so optimized that it actually is at the same speed as addition. Is that true?

I never ca

11条回答
  •  太阳男子
    2020-12-23 14:09

    Even if it were, that mostly tells us what restriction the clock puts on our hardware. We can't clock higher because heat(?), but the number of ADD instruction gates a signal could pass during a clock could be very many but a single ADD instruction would only utilize one of them. So while it may at some point take equally many clock cycles, not all of the propagation time for the signals is utilized.

    If we could clock higher we could def. make ADD faster probably by several orders of magnitude.

提交回复
热议问题