>>34
If you both div and mod the same 2 numbers, x86 compilers may be smart enough to do it for you. Of course, in languages which support multiple returns and have smart-enough compilers, it will use a idiv or div for it (some Common Lisp compilers do this just fine) and take the result from edx:eax or rdx:rax.