From: Philipp K. K. <pk...@sp...> - 2012-04-23 16:13:50
|
Am 21.04.2012 21:05, schrieb Philipp Klaus Krause: > On second thought this would be beneficial for the hc08, too: Signed > division is somewhat complicated, the division instruction has limited > size, and this replacement works for operands of any size. > > Philipp Fixed and enabled for hc08, z80, z180, r2k and gbz80 in revision #7682. Those more familiar with the other architectures might want to enable it for their ports, too. It should be a useful optimization for all ports that do not have native signed division. Philipp P.S.: In the place were an assertion would have saved me some time tracking down the issue I found a comment "/* I assume that […] */. I now added the assertion for both the z80 and mcs51 backends, but there might be similar things in other places. |