3 ms·
Yeah if you're willing to do something completely non-standard of course you can do whatever you want. > Note that there are also vast differences in performan
by IshKebab 6y ago
Yeah if you're willing to do something completely non-standard of course you can do whatever you want.
> Note that there are also vast differences in performance between different hardware implementations of multiply and divide, with 32-64 cycle latencies not unheard of.
Yes that is exactly the problem.
- brucehoult 6y agoThis problem exists even among different CPUs that all implement the M extension in hardware -- or different CPUs in ISAs where multiply and divide are not optional, such as x86 or aarch64. The worst (but conforming) hardware implementations are barely better than the best software emulations -- and maybe worse if the software emulation is running on a wide OoO CPU.