<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style><span class="swb">Aah, I was in error. I used agner as my source, but even that says 5 cycles for a near call and 17-33 for a far call, so I'm not sure where I got 50 from. My apologies. I have probably been avoiding function calls more than necessary!<br>
<br>
Gareth aka. Kit</span><br>
<br>
<span style="font-weight: bold;">On Sun 17/06/18 18:06 , David Pethes public@satd.sk sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">Hi,
<br>
<br>
On 17. 6. 2018 12:16, J. Gareth Moreton wrote:
<br>
<span style="color: rgb(102, 102, 102);">> The issue with DivMod is that the saving isn't that great because of the
</span><br>
<span style="color: rgb(102, 102, 102);">> penalty of calling a subroutine, which amounts to around 50 cycles on
</span><br>
<span style="color: rgb(102, 102, 102);">> x86-64, about equal to DIV.
</span><br>
<br>
That number sounds awfully high, what's your source?
<br>
<br>
David
<br>
<br>
<br>
</blockquote></HTML>