On Mon, 21 Jan 2008, Jim Leonard wrote:
Every time I see code like this for processors without
a native DIV, I
wonder if the same code ported to x86 would indeed outperform the native
DIV. Would it? I know that on a 286 or higher, where MUL and DIV were
greatly optimized to about 12 cycles, no; but what about on the original
808x, where MUL/DIV could take as much as 144 cycles?
On the 8088, an enormous amount of time is spent fetching instructions -
so much so that AAM will usually outperform DIV